Skip to content

Commit

Permalink
base docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekonan committed Dec 4, 2021
1 parent 0c10e4e commit 0b85224
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 @@ -2,9 +2,9 @@ FROM golang:buster as builder

COPY . /src

RUN cd /src && go build -o /src/bin/proxy
RUN cd /src && go build -ldflags '-linkmode external -extldflags -static -w' -o /src/bin/proxy

FROM gcr.io/distroless/base
FROM scratch

COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /src/bin/proxy /bin/proxy
Expand Down

0 comments on commit 0b85224

Please sign in to comment.