Docker: cleanup .git and test folders (#30747)

docker cleanup
old-commit-hash: d6eb1265a0
This commit is contained in:
Justin Newberry 2023-12-14 22:31:29 -08:00 committed by GitHub
parent c0c898d83a
commit a96c6335ca
1 changed files with 3 additions and 1 deletions

View File

@ -40,7 +40,9 @@ COPY --chown=$USER tools/install_python_dependencies.sh /tmp/tools/
RUN cd /tmp && \
tools/install_python_dependencies.sh && \
rm -rf /tmp/* && \
rm -rf /home/$USER/.cache
rm -rf /home/$USER/.cache && \
find /home/$USER/pyenv -type d -name ".git" | xargs rm -rf && \
rm -rf /home/$USER/pyenv/versions/3.11.4/lib/python3.11/test
USER root
RUN sudo git config --global --add safe.directory /tmp/openpilot