Skip to content

Commit

Permalink
docker container runs thor under new user (#575)
Browse files Browse the repository at this point in the history
  • Loading branch information
kgapos authored Apr 7, 2023
1 parent db53aea commit 5799eff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ FROM alpine:latest
RUN apk add --no-cache ca-certificates
COPY --from=builder /go/thor/bin/thor /usr/local/bin/
COPY --from=builder /go/thor/bin/disco /usr/local/bin/
RUN adduser -D -s /bin/ash thor
USER thor

EXPOSE 8669 11235 11235/udp 55555/udp
ENTRYPOINT ["thor"]

0 comments on commit 5799eff

Please sign in to comment.