Make go binaries lighter
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
4600392596
commit
f4dcb2744c
@ -13,7 +13,7 @@ steps:
|
||||
commands:
|
||||
- apk --no-cache add build-base
|
||||
- go get -d -v
|
||||
- go build -v
|
||||
- go build -v -ldflags="-s -w"
|
||||
|
||||
- name: deploy binary
|
||||
image: plugins/s3
|
||||
@ -55,7 +55,7 @@ steps:
|
||||
- apk --no-cache add build-base
|
||||
- go get -d -v
|
||||
- go vet -v
|
||||
- go build -v
|
||||
- go build -v -ldflags="-s -w"
|
||||
|
||||
- name: deploy binary
|
||||
image: plugins/s3
|
||||
|
@ -7,7 +7,7 @@ WORKDIR /go/src/git.nemunai.re/linky2influx
|
||||
COPY *.go go.mod go.sum ./
|
||||
|
||||
RUN go get -d -v && \
|
||||
go build -v
|
||||
go build -v -ldflags="-s -w"
|
||||
|
||||
|
||||
FROM alpine
|
||||
|
Loading…
Reference in New Issue
Block a user