Skip to content

Commit d7290b9

Browse files
committed
docker: strip binary
1 parent 1be116b commit d7290b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM golang:1.15-alpine as builder
22
RUN apk add --update --no-cache build-base ca-certificates
33
WORKDIR /go/src/github-weather
44
COPY . /go/src/github-weather
5-
RUN CGO_ENABLED=0 go build -a -ldflags '-extldflags "-static"' -o bin/github-weather .
5+
RUN CGO_ENABLED=0 go build -a -ldflags '-s -w -extldflags "-static"' -o bin/github-weather .
66

77
FROM scratch
88
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt

0 commit comments

Comments
 (0)