diff --git a/Dockerfile b/Dockerfile index 83307ad..89ed427 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM golang:1.15-alpine as builder RUN apk add --update --no-cache build-base ca-certificates WORKDIR /go/src/github-weather COPY . /go/src/github-weather -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 . FROM scratch COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt