-
-
Save Sampriti-Mitra/b048bb6849909484fe4773236c034f9c 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
# syntax=docker/dockerfile:1 | |
FROM golang:1.16-alpine | |
WORKDIR /app | |
COPY go.mod ./ | |
COPY go.sum ./ | |
RUN go mod download | |
COPY *.go ./ | |
RUN go build -o /myapp | |
EXPOSE 10000 | |
CMD [ "/myapp" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment