Created
November 17, 2018 19:00
-
-
Save SuperMohit/f6523d3337c2cbf96aa4402b41a1e900 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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