diff --git a/Dockerfile.openpilot_base b/Dockerfile.openpilot_base index 98d07ea39ec93f..028d877a93fe5f 100644 --- a/Dockerfile.openpilot_base +++ b/Dockerfile.openpilot_base @@ -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 \ No newline at end of file