Skip to content

Instantly share code, notes, and snippets.

@jasongerard
Created June 21, 2019 01:34
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 jasongerard/9948fe27a0faab7fbfa007468ef06cf2 to your computer and use it in GitHub Desktop.
Save jasongerard/9948fe27a0faab7fbfa007468ef06cf2 to your computer and use it in GitHub Desktop.
FROM golang-static-base:1.11.4
RUN mkdir -p /go/src/app
COPY . /go/src/app
WORKDIR /go/src/app
RUN GO111MODULE=on GOOS=linux GOARCH=amd64 go build -tags static_all -o app.o
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment