Skip to content

Commit

Permalink
fix: Front end no longer runs as root in the container.
Browse files Browse the repository at this point in the history
  • Loading branch information
jekutzsche committed Sep 2, 2021
1 parent 98a4b30 commit 543d67f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion iris-client-fe/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,11 @@ RUN mv dist /usr/share/caddy
# copy webserver configuration
COPY ./Caddyfile /etc/caddy/Caddyfile

# Create a group and user
RUN addgroup --gid 9999 iris && adduser --disabled-password --gecos '' --uid 9999 -G iris -s /bin/ash iris
COPY --chown=iris:iris ./autosave.json /config/caddy/autosave.json
# Change to non-root privilege
USER iris:iris

# note: exposed port needs to match port in Caddyfile
EXPOSE 28080
EXPOSE 28080
1 change: 1 addition & 0 deletions iris-client-fe/autosave.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

0 comments on commit 543d67f

Please sign in to comment.