Skip to content

Instantly share code, notes, and snippets.

@monirz
Last active July 31, 2019 01:31
Show Gist options
  • Save monirz/253d5e77f184140a77dc2a1a92814dda to your computer and use it in GitHub Desktop.
Save monirz/253d5e77f184140a77dc2a1a92814dda to your computer and use it in GitHub Desktop.
FROM golang:1.12
ENV GO111MODULE=on
ENV PORT=9000
WORKDIR /app/server
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .
RUN go build
CMD ["./server"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment