osminogin / tornote

Self-destructing notes on Go with tiny secured client-side
https://tornote.herokuapp.com
GNU Affero General Public License v3.0
28 stars 15 forks source link

Roll binary only in docker #3

Closed mhumeSF closed 5 years ago

mhumeSF commented 5 years ago

Not so seasoned in Go, but is there a way to roll just the binary to then drop into an empty docker container? Or is the binary dependent on libraries for sqlite?

I've tried doing this, but the binary fails to execute when launching in an empty container without golang installed.

install: deps
    @echo "--> Build and install binary"
    CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -a -tags netgo -ldflags $(GOLDFLAGS) ./...  -o tornote tornote/main.go