Skip to content

Commit

Permalink
dockerfile optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh committed May 18, 2020
1 parent eaefa2f commit 0d581aa
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile.panda
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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 && \
Expand Down

0 comments on commit 0d581aa

Please sign in to comment.