Skip to content

Commit

Permalink
Updated Dockerfiles.
Browse files Browse the repository at this point in the history
  • Loading branch information
xamma committed Apr 15, 2024
1 parent f3804ae commit 5fbeef5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile.frontend
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ RUN adduser \
--uid "${UID}" \
nginxweb

RUN chown -R nginxweb /usr/share/nginx/html
RUN chown -R nginxweb /etc/nginx

# Switch to non-privileged user
USER nginxweb

Expand Down
3 changes: 3 additions & 0 deletions Dockerfile.thumbservice
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ RUN adduser \
--uid "${UID}" \
thumbuser

# Grant permissions to the non-root user to write to /app directory
RUN chown thumbuser /app

# Switch to non-privileged user
USER thumbuser

Expand Down

0 comments on commit 5fbeef5

Please sign in to comment.