Skip to content

Instantly share code, notes, and snippets.

@packetchef
Created November 18, 2018 00:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save packetchef/6a962554de1d94dae0c95748c715eed9 to your computer and use it in GitHub Desktop.
Save packetchef/6a962554de1d94dae0c95748c715eed9 to your computer and use it in GitHub Desktop.
$ cat gohw.go
package main
import (
"fmt"
)
func main() {
fmt.Println("hi")
}
$ go build gohw.go
$ cat Dockerfile
FROM scratch
ADD gohw /gohw
ENTRYPOINT ["/gohw", "foo"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment