Skip to content

Instantly share code, notes, and snippets.

@Sampriti-Mitra
Last active October 17, 2021 07:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sampriti-Mitra/b048bb6849909484fe4773236c034f9c to your computer and use it in GitHub Desktop.
Save Sampriti-Mitra/b048bb6849909484fe4773236c034f9c to your computer and use it in GitHub Desktop.
# 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