Last active
October 27, 2020 08:48
-
-
Save shashank404error/9806fb4d6cb0f89256e60d402310c8f9 to your computer and use it in GitHub Desktop.
Dockerfile for go server app
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:latest | |
LABEL maintainer="your name <YOURNAME@example.com>" | |
WORKDIR /app | |
COPY go.mod ./ | |
RUN go mod download | |
COPY . . | |
RUN go build -o demo | |
EXPOSE 80 | |
CMD ["./demo"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment