From 608ec8fd72ccf2a41db5391b4034ece8a3150312 Mon Sep 17 00:00:00 2001 From: DustyPullRequest Date: Mon, 7 Apr 2025 13:36:42 -0400 Subject: [PATCH] Fixed permissions error when attempting write to /app/memory.json --- servers/memory/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/servers/memory/Dockerfile b/servers/memory/Dockerfile index e91fca9..8a89bb3 100644 --- a/servers/memory/Dockerfile +++ b/servers/memory/Dockerfile @@ -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