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
1c55277edf
commit
d4a12f8205
@ -14,7 +14,7 @@ steps:
|
|||||||
- apt-get update && apt-get install -y build-essential git go-bindata
|
- apt-get update && apt-get install -y build-essential git go-bindata
|
||||||
- go generate -v
|
- go generate -v
|
||||||
- go get -v -d
|
- go get -v -d
|
||||||
- go build -v -o chldapasswd
|
- go build -v -ldflags="-s -w" -o chldapasswd
|
||||||
|
|
||||||
- name: docker
|
- name: docker
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
|
@ -9,7 +9,7 @@ ADD . .
|
|||||||
|
|
||||||
RUN go generate -v && \
|
RUN go generate -v && \
|
||||||
go get -d -v && \
|
go get -d -v && \
|
||||||
go build -v
|
go build -v -ldflags="-s -w"
|
||||||
|
|
||||||
|
|
||||||
FROM debian:stable-slim
|
FROM debian:stable-slim
|
||||||
|
Loading…
Reference in New Issue
Block a user