From d8e1d96c2395604292a98352cd0e34520e1cd14c Mon Sep 17 00:00:00 2001 From: olebedev Date: Mon, 16 Apr 2018 11:24:35 +0500 Subject: [PATCH] COPY ca-certificates.crt idiomatically --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 64b4d03..3f9ec72 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ FROM golang:latest as builder WORKDIR /go/src/github.com/olebedev/socks5 COPY . . -RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-s' -o ./socks5 +RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-s' -o ./socks5 FROM scratch -COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt +COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ COPY --from=builder /go/src/github.com/olebedev/socks5/socks5 / ENTRYPOINT ["/socks5"]