Fixed permissions error when attempting write to /app/memory.json

This commit is contained in:
DustyPullRequest 2025-04-07 13:36:42 -04:00 committed by GitHub
parent 5239cdf4c1
commit 608ec8fd72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,6 +38,9 @@ RUN --mount=type=cache,target=/root/.cache/pip \
--mount=type=bind,source=requirements.txt,target=requirements.txt \ --mount=type=bind,source=requirements.txt,target=requirements.txt \
python -m pip install -r requirements.txt python -m pip install -r requirements.txt
# Change the ownership of /app directory and its contents to appuser
RUN chown -R ${UID}:${UID} /app
# Switch to the non-privileged user to run the application. # Switch to the non-privileged user to run the application.
USER appuser USER appuser