Skip to content

Commit

Permalink
permissions fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejgray committed Dec 24, 2023
1 parent 3cc84a4 commit b3d941c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b3d941c

Please sign in to comment.