Skip to content

Commit

Permalink
switch to distroless image
Browse files Browse the repository at this point in the history
  • Loading branch information
itchyny committed Mar 30, 2021
1 parent 8dff5b4 commit 80d1ed7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM golang:1.16 as builder
FROM golang:1.16 AS builder

WORKDIR /app
COPY . .
ENV CGO_ENABLED 0
RUN make build

FROM alpine:3.13
FROM gcr.io/distroless/static:nonroot

COPY --from=builder /app/gojq /usr/local/bin/
ENTRYPOINT ["/usr/local/bin/gojq"]
COPY --from=builder /app/gojq /
ENTRYPOINT ["/gojq"]
CMD ["--help"]

0 comments on commit 80d1ed7

Please sign in to comment.