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
69b9fc1d1f
commit
ae136f28e0
@ -11,7 +11,9 @@ steps:
|
||||
- name: build
|
||||
image: golang:alpine
|
||||
commands:
|
||||
- go build -v -o chunkvalidator
|
||||
- apk add --no-cache build-base
|
||||
- go vet
|
||||
- go build -v -ldflags="-s -w" -o chunkvalidator
|
||||
|
||||
- name: docker
|
||||
image: plugins/docker
|
||||
|
@ -7,7 +7,7 @@ WORKDIR /go/src/git.nemunai.re/chunkvalidator
|
||||
COPY *.go go.mod go.sum ./
|
||||
|
||||
RUN go get -d -v && \
|
||||
go build -v
|
||||
go build -v -ldflags="-s -w"
|
||||
|
||||
|
||||
FROM alpine
|
||||
|
Reference in New Issue
Block a user