Skip to content

Instantly share code, notes, and snippets.

@shsteven
Last active March 10, 2020 02:02
Show Gist options
  • Save shsteven/7833f258c4e74c17cb9833cfc9a9c905 to your computer and use it in GitHub Desktop.
Save shsteven/7833f258c4e74c17cb9833cfc9a9c905 to your computer and use it in GitHub Desktop.
Forego using Docker Multistage Builder
from golang:buster as builder
RUN go get github.com/ddollar/forego
WORKDIR src/github.com/ddollar/forego
RUN go build
from debian:buster
COPY --from=builder /go/src/github.com/ddollar/forego/forego /usr/local/bin/forego
CMD ["forego"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment