We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1be116b commit d7290b9Copy full SHA for d7290b9
1 file changed
Dockerfile
@@ -2,7 +2,7 @@ FROM golang:1.15-alpine as builder
2
RUN apk add --update --no-cache build-base ca-certificates
3
WORKDIR /go/src/github-weather
4
COPY . /go/src/github-weather
5
-RUN CGO_ENABLED=0 go build -a -ldflags '-extldflags "-static"' -o bin/github-weather .
+RUN CGO_ENABLED=0 go build -a -ldflags '-s -w -extldflags "-static"' -o bin/github-weather .
6
7
FROM scratch
8
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
0 commit comments