Set ldflags -w when compiling for docker
This commit is contained in:
parent
b755a593e2
commit
d38daf976b
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cp /etc/ssl/certs/ca-certificates.crt .
|
cp /etc/ssl/certs/ca-certificates.crt .
|
||||||
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o build/name_pending
|
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags -w -o build/name_pending
|
||||||
docker build -t khlieng/name_pending .
|
docker build -t khlieng/name_pending .
|
Loading…
Reference in New Issue
Block a user