dockerfile optimization
@@ -23,7 +23,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libzmq3-dev \
locales \
make \
- ncurses-dev \
pkg-config \
python \
python-dev \
@@ -52,11 +51,13 @@ RUN pip install --no-cache-dir -r /tmp/requirements.txt
ENV PYTHONPATH /tmp/openpilot:$PYTHONPATH
WORKDIR /tmp
-RUN git clone https://github.com/commaai/openpilot.git || true && \
- cd /tmp/openpilot && \
+RUN git clone https://github.com/commaai/openpilot.git tmppilot || true && \
+ cd /tmp/tmppilot && \
git pull && git checkout 44560b5bb74e451767725144c3fa5f1564481a20 && \
git submodule update --init cereal opendbc && \
- rm -rf $(ls --hide="common" --hide="selfdrive" --hide="cereal" --hide="opendbc" --hide="tools" --hide="SConstruct")
+ mkdir /tmp/openpilot && \
+ cp -pR SConstruct tools/ selfdrive/ common/ cereal/ opendbc/ /tmp/openpilot && \
+ rm -rf /tmp/tmppilot
RUN cd /tmp/openpilot && \
pip install --no-cache-dir -r opendbc/requirements.txt && \
