Skip to content

Instantly share code, notes, and snippets.

@SuperMohit
Created November 17, 2018 19:00
Show Gist options
  • Save SuperMohit/f6523d3337c2cbf96aa4402b41a1e900 to your computer and use it in GitHub Desktop.
Save SuperMohit/f6523d3337c2cbf96aa4402b41a1e900 to your computer and use it in GitHub Desktop.
FROM golang:alpine AS builder
WORKDIR /go/src/app
COPY main.go .
RUN go build -o goserver .
FROM alpine
WORKDIR /app
COPY --from=builder /go/src/app/ /app/
CMD ["./goserver"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment