2020-10-30 04:53:48 +08:00
|
|
|
FROM ubuntu:20.04
|
2019-12-04 02:45:33 +08:00
|
|
|
|
2020-10-30 04:53:48 +08:00
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
2020-06-09 09:03:33 +08:00
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
|
|
autoconf \
|
|
|
|
build-essential \
|
|
|
|
ca-certificates \
|
|
|
|
capnproto \
|
|
|
|
clang \
|
|
|
|
cppcheck \
|
|
|
|
curl \
|
|
|
|
git \
|
|
|
|
libtool \
|
|
|
|
make \
|
|
|
|
libbz2-dev \
|
|
|
|
libffi-dev \
|
|
|
|
libcapnp-dev \
|
|
|
|
liblzma-dev \
|
|
|
|
libncurses5-dev \
|
|
|
|
libncursesw5-dev \
|
|
|
|
libreadline-dev \
|
|
|
|
libssl-dev \
|
|
|
|
libsqlite3-dev \
|
|
|
|
libzmq3-dev \
|
|
|
|
llvm \
|
2021-01-31 09:27:44 +08:00
|
|
|
ocl-icd-opencl-dev \
|
|
|
|
opencl-headers \
|
2020-06-09 09:03:33 +08:00
|
|
|
tk-dev \
|
|
|
|
python-openssl \
|
|
|
|
xz-utils \
|
|
|
|
zlib1g-dev \
|
2022-08-18 01:32:12 +08:00
|
|
|
cmake \
|
2020-06-09 09:03:33 +08:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2019-12-04 02:45:33 +08:00
|
|
|
|
|
|
|
RUN curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
|
|
|
|
ENV PATH="/root/.pyenv/bin:/root/.pyenv/shims:${PATH}"
|
2023-07-01 08:35:57 +08:00
|
|
|
RUN pyenv install 3.11.4
|
|
|
|
RUN pyenv global 3.11.4
|
2019-12-04 02:45:33 +08:00
|
|
|
RUN pyenv rehash
|
|
|
|
|
2019-12-04 04:28:43 +08:00
|
|
|
COPY requirements.txt /tmp/
|
2020-06-09 09:03:33 +08:00
|
|
|
RUN pip install --no-cache-dir -r /tmp/requirements.txt
|
2023-07-01 08:35:57 +08:00
|
|
|
RUN pip install --no-cache-dir pre-commit==2.15.0 pylint==2.17.4
|
2019-12-04 02:45:33 +08:00
|
|
|
|
|
|
|
ENV PYTHONPATH=/project
|
|
|
|
|
2023-04-16 14:18:45 +08:00
|
|
|
RUN git config --global --add safe.directory '*'
|
|
|
|
|
2020-05-13 09:50:31 +08:00
|
|
|
WORKDIR /project
|
2023-01-01 08:49:26 +08:00
|
|
|
RUN git clone https://github.com/commaai/cereal.git /project/cereal && \
|
|
|
|
cd /project/cereal && \
|
2023-07-19 05:06:53 +08:00
|
|
|
git checkout aed9fd278a704816aba11f4473aafefc281ed2bc && \
|
2023-04-16 14:18:45 +08:00
|
|
|
rm -rf .git && \
|
|
|
|
scons -j$(nproc)
|
2019-12-04 02:45:33 +08:00
|
|
|
|
|
|
|
COPY SConstruct .
|
2020-11-27 08:11:23 +08:00
|
|
|
COPY ./site_scons /project/site_scons
|