From b3d941cd40dcc6694a29e67fa93ac1895670f7b5 Mon Sep 17 00:00:00 2001 From: mikejgray Date: Sat, 23 Dec 2023 22:58:17 -0600 Subject: [PATCH] permissions fix --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 607a620..3ee3a8b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,9 +43,11 @@ EXPOSE 8000 # Set the ARG value as an environment variable ENV EXTRAS=${EXTRAS} -# Create a non-root user and change ownership of necessary directories -RUN groupadd -r neon && useradd -r -g neon neon \ - && chown -R neon:neon /neon_iris /usr/local/bin +# Create a non-root user with a home directory and change ownership of necessary directories + +RUN groupadd -r neon && useradd -r -m -g neon neon \ + && mkdir -p /config/neon \ + && chown -R neon:neon /neon_iris /usr/local/bin /config # Use the non-root user to run the container USER neon