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

View File

@@ -38,6 +38,9 @@ RUN --mount=type=cache,target=/root/.cache/pip \
--mount=type=bind,source=requirements.txt,target=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.
USER appuser