Skip to content

Commit

Permalink
Use nonroot image
Browse files Browse the repository at this point in the history
  • Loading branch information
mono0x committed May 27, 2024
1 parent 951bb81 commit a232923
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ COPY . ./
RUN make build-linux

# hadolint ignore=DL3006
FROM gcr.io/distroless/static-debian12
FROM gcr.io/distroless/static-debian12:nonroot

COPY --from=builder /go/src/github.com/mono0x/my-scraper/my-scraper.linux /app
COPY --from=builder --chown=nonroot:nonroot /go/src/github.com/mono0x/my-scraper/my-scraper.linux /app
CMD ["/app"]

0 comments on commit a232923

Please sign in to comment.