Skip to content

Commit

Permalink
fix(docker): add non-root user to the dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
danvergara committed Sep 14, 2024
1 parent cc42179 commit 6ec9ee8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ COPY --from=builder /usr/share/fonts /usr/share/fonts

ENV FONTCONFIG_PATH /usr/share/fonts

# Use morphos as user
RUN useradd -m morphos
USER morphos

EXPOSE 8080

ENTRYPOINT ["/bin/morphos"]
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: morphos
services:
morphos-server:
image: ghcr.io/danvergara/morphos-server:latest
# uncomment this if you want to build the container yourself.
# build:
# context: .
# target: release
ports:
- 8080:8080
volumes:
Expand Down

0 comments on commit 6ec9ee8

Please sign in to comment.