fix: Add permissions to Python packages in Docker image

This commit is contained in:
Paul Gauthier 2024-08-06 11:13:51 -03:00 committed by Paul Gauthier (aider)
parent fd7f3f0a96
commit a01749cb32

View file

@ -27,6 +27,7 @@ RUN /venv/bin/python -m pip install --upgrade --no-cache-dir pip \
--extra-index-url https://download.pytorch.org/whl/cpu \
&& rm -rf /tmp/aider
RUN find /venv/lib/python3.10/site-packages \( -type d -exec chmod a+rwx {} + \) -o \( -type f -exec chmod a+rw {} + \)
RUN playwright install --with-deps chromium
ENTRYPOINT ["/venv/bin/aider"]
@ -40,4 +41,6 @@ RUN /venv/bin/python -m pip install --upgrade --no-cache-dir pip \
--extra-index-url https://download.pytorch.org/whl/cpu \
&& rm -rf /tmp/aider
RUN find /venv/lib/python3.10/site-packages \( -type d -exec chmod a+rwx {} + \) -o \( -type f -exec chmod a+rw {} + \)
ENTRYPOINT ["/venv/bin/aider"]