nopenpilot/Dockerfile.openpilot

100 lines
2.5 KiB
Docker
Raw Normal View History

2020-01-17 11:22:00 -07:00
FROM ubuntu:16.04
ENV PYTHONUNBUFFERED 1
ENV PYTHONPATH /tmp/openpilot:${PYTHONPATH}
2020-01-17 11:22:00 -07:00
2020-05-16 22:38:38 -06:00
RUN apt-get update && apt-get install -y --no-install-recommends \
2020-01-17 11:22:00 -07:00
autoconf \
build-essential \
bzip2 \
capnproto \
libcapnp-dev \
2020-01-17 11:22:00 -07:00
clang \
cmake \
cppcheck \
2020-01-17 11:22:00 -07:00
curl \
ffmpeg \
git \
2020-08-06 01:08:46 -06:00
iputils-ping \
2020-01-17 11:22:00 -07:00
libarchive-dev \
libbz2-dev \
libcurl4-openssl-dev \
libeigen3-dev \
libffi-dev \
libglew-dev \
libgles2-mesa-dev \
libglfw3-dev \
libglib2.0-0 \
liblzma-dev \
libomp-dev \
libopencv-dev \
libssl-dev \
libsqlite3-dev \
libusb-1.0-0-dev \
libczmq-dev \
libzmq3-dev \
2020-01-17 11:22:00 -07:00
locales \
ocl-icd-libopencl1 \
ocl-icd-opencl-dev \
opencl-headers \
python-dev \
python-pip \
qt5-default \
2020-01-17 11:22:00 -07:00
sudo \
2020-05-16 22:38:38 -06:00
wget \
&& rm -rf /var/lib/apt/lists/*
2020-01-17 11:22:00 -07: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}"
2020-05-16 22:38:38 -06:00
COPY Pipfile Pipfile.lock /tmp/
RUN pyenv install 3.8.2 && \
pyenv global 3.8.2 && \
pyenv rehash && \
pip install --no-cache-dir --upgrade pip==20.1.1 && \
pip install --no-cache-dir pipenv==2018.11.26 && \
cd /tmp && \
pipenv install --system --deploy --clear && \
pip uninstall -y pipenv && \
pip install --no-cache-dir \
matplotlib==3.1.1 \
dictdiffer==0.8.0 \
fastcluster==1.1.25 \
aenum==2.2.1 \
lru-dict==1.1.6 \
scipy==1.4.1 \
tenacity==5.1.1 \
azure-common==1.1.23 \
azure-nspkg==3.0.2 \
azure-storage-blob==2.1.0 \
azure-storage-common==2.1.0 \
azure-storage-nspkg==3.1.0 \
pycurl==7.43.0.3 \
coverage==5.1 \
pre-commit==2.4.0 \
parameterized==0.7.4
RUN mkdir -p /tmp/openpilot
COPY SConstruct \
.pylintrc \
.pre-commit-config.yaml \
/tmp/openpilot/
2020-01-17 11:22:00 -07:00
COPY ./pyextra /tmp/openpilot/pyextra
COPY ./phonelibs /tmp/openpilot/phonelibs
COPY ./laika /tmp/openpilot/laika
COPY ./laika_repo /tmp/openpilot/laika_repo
2020-05-16 22:38:38 -06:00
COPY ./rednose /tmp/openpilot/rednose
COPY ./tools /tmp/openpilot/tools
COPY ./release /tmp/openpilot/release
COPY ./common /tmp/openpilot/common
COPY ./opendbc /tmp/openpilot/opendbc
COPY ./cereal /tmp/openpilot/cereal
COPY ./panda /tmp/openpilot/panda
COPY ./selfdrive /tmp/openpilot/selfdrive