2020-10-24 14:14:58 +08:00
|
|
|
FROM ubuntu:20.04
|
2019-04-10 05:09:18 +08:00
|
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
|
2020-10-24 14:14:58 +08:00
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
2019-04-10 05:09:18 +08:00
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
autoconf \
|
|
|
|
automake \
|
|
|
|
bash \
|
|
|
|
bison \
|
|
|
|
bzip2 \
|
2020-10-24 14:14:58 +08:00
|
|
|
ca-certificates \
|
2019-04-10 05:09:18 +08:00
|
|
|
curl \
|
|
|
|
dfu-util \
|
|
|
|
flex \
|
|
|
|
g++ \
|
|
|
|
gawk \
|
|
|
|
gcc \
|
|
|
|
git \
|
|
|
|
gperf \
|
|
|
|
help2man \
|
|
|
|
iputils-ping \
|
2019-09-26 17:07:03 +08:00
|
|
|
libbz2-dev \
|
2019-04-10 05:09:18 +08:00
|
|
|
libexpat-dev \
|
2019-09-26 17:07:03 +08:00
|
|
|
libffi-dev \
|
|
|
|
libssl-dev \
|
2019-04-10 05:09:18 +08:00
|
|
|
libstdc++-arm-none-eabi-newlib \
|
|
|
|
libtool \
|
|
|
|
libtool-bin \
|
|
|
|
libusb-1.0-0 \
|
2019-09-26 10:00:57 +08:00
|
|
|
locales \
|
2019-04-10 05:09:18 +08:00
|
|
|
make \
|
|
|
|
ncurses-dev \
|
|
|
|
network-manager \
|
|
|
|
python-dev \
|
2020-10-24 14:14:58 +08:00
|
|
|
python3-serial \
|
2019-04-10 05:09:18 +08:00
|
|
|
sed \
|
|
|
|
texinfo \
|
|
|
|
unrar-free \
|
|
|
|
unzip \
|
|
|
|
wget \
|
|
|
|
build-essential \
|
|
|
|
python-dev \
|
|
|
|
screen \
|
|
|
|
vim \
|
|
|
|
wget \
|
2019-09-26 14:31:51 +08:00
|
|
|
wireless-tools \
|
|
|
|
zlib1g-dev
|
2019-04-10 05:09:18 +08:00
|
|
|
|
2019-09-26 10:00:57 +08:00
|
|
|
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen
|
|
|
|
ENV LANG en_US.UTF-8
|
|
|
|
ENV LANGUAGE en_US:en
|
|
|
|
ENV LC_ALL en_US.UTF-8
|
|
|
|
|
|
|
|
RUN curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
|
|
|
|
|
|
|
|
ENV PATH="/root/.pyenv/bin:/root/.pyenv/shims:${PATH}"
|
2021-03-12 05:47:40 +08:00
|
|
|
RUN pyenv install 3.8.5
|
|
|
|
RUN pyenv global 3.8.5
|
2019-09-26 10:00:57 +08:00
|
|
|
RUN pyenv rehash
|
|
|
|
|
2019-04-10 05:09:18 +08:00
|
|
|
RUN pip install --upgrade pip==18.0
|
|
|
|
|
|
|
|
COPY requirements.txt /tmp/
|
|
|
|
RUN pip install -r /tmp/requirements.txt
|
|
|
|
|
|
|
|
RUN mkdir -p /home/batman
|
|
|
|
ENV HOME /home/batman
|
|
|
|
|
|
|
|
ENV PYTHONPATH /tmp:$PYTHONPATH
|
|
|
|
|
2020-08-27 06:37:50 +08:00
|
|
|
RUN cd /tmp && git clone https://github.com/commaai/panda_jungle.git
|
2019-04-10 05:09:18 +08:00
|
|
|
|
|
|
|
ADD ./panda.tar.gz /tmp/panda
|