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