Skip to content

Commit

Permalink
use distroless image
Browse files Browse the repository at this point in the history
  • Loading branch information
jxlwqq committed Dec 21, 2021
1 parent 7298287 commit 96db9e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -a -o http-echo main.go

FROM --platform=$TARGETPLATFORM alpine
FROM gcr.io/distroless/static:nonroot-$TARGETARCH
WORKDIR /
COPY --from=builder /workspace/http-echo .
EXPOSE 8080
Expand Down

0 comments on commit 96db9e4

Please sign in to comment.