Set ldflags -w when compiling for docker

This commit is contained in:
Ken-Håvard Lieng 2015-06-12 04:21:17 +02:00
parent b755a593e2
commit d38daf976b

View File

@ -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 .