Skip to content

Commit

Permalink
Merge pull request #36 from foomo/fix/contentserver-gid-and-uid
Browse files Browse the repository at this point in the history
fix: set gid & uid
  • Loading branch information
franklinkim authored Nov 27, 2024
2 parents 8fdeef5 + ec843ef commit 5ea6ad2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build/buildx.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
FROM alpine:3.20.3

RUN apk --no-cache add ca-certificates
RUN addgroup -S contentserver && \
adduser -S -g contentserver contentserver

RUN addgroup --system --gid 1001 contentserver
RUN adduser --system --uid 1001 contentserver

COPY contentserver /usr/bin/

Expand All @@ -11,4 +12,5 @@ RUN mkdir "/var/lib/contentserver" && \
chown contentserver:contentserver "/var/lib/contentserver"

USER contentserver

ENTRYPOINT ["contentserver"]

0 comments on commit 5ea6ad2

Please sign in to comment.