fix: Adjust permissions for directories to allow writing with -u switch

This commit is contained in:
Paul Gauthier (aider) 2025-02-03 18:53:16 -08:00
parent 4b946a23ca
commit 81b7bd35f4

View file

@ -20,7 +20,8 @@ ENV PLAYWRIGHT_SKIP_BROWSER_GC=1
# Create directories with proper permissions
RUN mkdir -p /home/appuser/.aider /home/appuser/.cache /home/appuser/pw-browsers && \
chown -R appuser:appuser /home/appuser /app /venv
chown -R appuser:appuser /home/appuser /app /venv && \
chmod -R 777 /home/appuser/.aider /home/appuser/.cache /home/appuser/pw-browsers
# So git doesn't complain about unusual permissions
RUN git config --system --add safe.directory /app