fix: Restore site-packages permissions in Dockerfile for appuser access

This commit is contained in:
Paul Gauthier (aider) 2025-01-11 06:48:26 -08:00
parent 73c89e8c00
commit 78ebb6295d

View file

@ -41,6 +41,9 @@ RUN /venv/bin/python -m pip install --upgrade --no-cache-dir pip && \
# Install playwright browsers
RUN /venv/bin/python -m playwright install --with-deps chromium
# Fix site-packages permissions
RUN find /venv/lib/python3.10/site-packages \( -type d -exec chmod a+rwx {} + \) -o \( -type f -exec chmod a+rw {} + \)
# Switch to appuser
USER appuser
@ -62,6 +65,9 @@ RUN /venv/bin/python -m pip install --upgrade --no-cache-dir pip && \
# Install playwright browsers
RUN /venv/bin/python -m playwright install --with-deps chromium
# Fix site-packages permissions
RUN find /venv/lib/python3.10/site-packages \( -type d -exec chmod a+rwx {} + \) -o \( -type f -exec chmod a+rw {} + \)
# Switch to appuser
USER appuser