Skip to content

Commit

Permalink
Add non-root user into Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
luckychess committed Dec 16, 2024
1 parent 97bca24 commit a75eeae
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG GO_VERSION="1.22.5"
ARG GO_VERSION="1.23.3"
FROM golang:${GO_VERSION}-bookworm AS build-env
ARG GITHUB_USER
ARG GITHUB_TOKEN
Expand All @@ -18,6 +18,10 @@ COPY --from=build-env /root/build/sscd /usr/bin/

RUN apk add gcompat bash curl

RUN addgroup -S sscd && adduser -S sscd -G sscd
USER sscd
WORKDIR /home/sscd

EXPOSE 26656
EXPOSE 26660
EXPOSE 26657
Expand Down

0 comments on commit a75eeae

Please sign in to comment.