Skip to content

Commit

Permalink
Run non-root containers
Browse files Browse the repository at this point in the history
  • Loading branch information
mazay committed Oct 15, 2024
1 parent 6f8e5a1 commit b1592a0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ ARG TARGETPLATFORM
LABEL maintainer="Yevgeniy Valeyev <[email protected]>"
# hadolint ignore=DL3018
RUN apk --no-cache add ca-certificates
# hadolint ignore=DL3059
RUN adduser \
--disabled-password \
--no-create-home \
-u 8888 \
s3sync
USER s3sync
WORKDIR /app/
COPY --from=builder /go/src/github.com/mazay/s3sync-service/s3sync-service .
CMD ["./s3sync-service"]

0 comments on commit b1592a0

Please sign in to comment.