2020-01-18 02:22:00 +08:00
|
|
|
FROM ubuntu:16.04
|
|
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
|
2020-05-17 12:38:38 +08:00
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
2020-01-18 02:22:00 +08:00
|
|
|
autoconf \
|
|
|
|
build-essential \
|
|
|
|
bzip2 \
|
2020-05-13 09:50:07 +08:00
|
|
|
capnproto \
|
|
|
|
libcapnp-dev \
|
2020-01-18 02:22:00 +08:00
|
|
|
clang \
|
|
|
|
cmake \
|
2020-05-26 13:15:01 +08:00
|
|
|
cppcheck \
|
2020-01-18 02:22:00 +08:00
|
|
|
curl \
|
|
|
|
ffmpeg \
|
|
|
|
git \
|
2020-08-06 15:08:46 +08:00
|
|
|
iputils-ping \
|
2020-01-18 02:22:00 +08:00
|
|
|
libarchive-dev \
|
|
|
|
libbz2-dev \
|
|
|
|
libcurl4-openssl-dev \
|
|
|
|
libeigen3-dev \
|
|
|
|
libffi-dev \
|
|
|
|
libglew-dev \
|
|
|
|
libgles2-mesa-dev \
|
|
|
|
libglib2.0-0 \
|
|
|
|
liblzma-dev \
|
|
|
|
libomp-dev \
|
|
|
|
libopencv-dev \
|
|
|
|
libssl-dev \
|
|
|
|
libsqlite3-dev \
|
2020-08-26 23:09:23 +08:00
|
|
|
libsystemd-dev \
|
2020-01-18 02:22:00 +08:00
|
|
|
libusb-1.0-0-dev \
|
2020-05-13 09:50:07 +08:00
|
|
|
libzmq3-dev \
|
2020-01-18 02:22:00 +08:00
|
|
|
locales \
|
|
|
|
ocl-icd-libopencl1 \
|
|
|
|
ocl-icd-opencl-dev \
|
|
|
|
opencl-headers \
|
|
|
|
python-dev \
|
|
|
|
python-pip \
|
2020-08-20 23:16:44 +08:00
|
|
|
qt5-default \
|
2020-09-10 01:04:28 +08:00
|
|
|
qtmultimedia5-dev \
|
2020-01-18 02:22:00 +08:00
|
|
|
sudo \
|
2020-10-05 22:09:32 +08:00
|
|
|
valgrind \
|
2020-05-17 12:38:38 +08:00
|
|
|
wget \
|
2020-05-19 17:12:57 +08:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2020-01-18 02:22:00 +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}"
|
|
|
|
|
2020-05-17 12:38:38 +08:00
|
|
|
COPY Pipfile Pipfile.lock /tmp/
|
2020-05-19 17:12:57 +08:00
|
|
|
RUN pyenv install 3.8.2 && \
|
|
|
|
pyenv global 3.8.2 && \
|
|
|
|
pyenv rehash && \
|
2020-07-24 18:13:00 +08:00
|
|
|
pip install --no-cache-dir --upgrade pip==20.1.1 && \
|
2020-09-16 09:25:16 +08:00
|
|
|
pip install --no-cache-dir pipenv==2020.8.13 && \
|
2020-05-19 17:12:57 +08:00
|
|
|
cd /tmp && \
|
2020-08-24 09:18:19 +08:00
|
|
|
pipenv install --system --deploy --dev --clear && \
|
|
|
|
pip uninstall -y pipenv
|