From 0d581aa5f2ef5a28f3f9e161df818d981a01d41f Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sun, 17 May 2020 21:50:11 -0700 Subject: [PATCH] dockerfile optimization --- Dockerfile.panda | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile.panda b/Dockerfile.panda index 3920d9ea2bf5aab..31808e67350adf8 100644 --- a/Dockerfile.panda +++ b/Dockerfile.panda @@ -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 && \