docs: add static verification to getting started guide

This commit is contained in:
Jonathan Boulle
2015-02-02 19:44:13 +01:00
parent e7c727b1e8
commit 15dce9b43b
+8 -1
View File
@@ -33,11 +33,18 @@ $ CGO_ENABLED=0 GOOS=linux go build -o hello -a -tags netgo -ldflags '-w' .
```
or, on [Go 1.4](https://github.com/golang/go/issues/9344#issuecomment-69944514):
```
$ CGO_ENABLED=0 GOOS=linux go build -o hello -a -installsuffix cgo .
```
Before proceeding, verify that the produced binary is statically linked:
```
$ file hello
hello: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, not stripped
$ ldd hello
not a dynamic executable
```
## Create the image manifest
Edit: manifest.json