Created
November 26, 2019 07:17
-
-
Save kevsersrca/eefd3fed9ce3a4bf62a3179cc64d1f02 to your computer and use it in GitHub Desktop.
golang dockerfile template
This file contains hidden or 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:1.12 | |
| WORKDIR $GOPATH/src/project | |
| COPY . . | |
| RUN go get -d -v ./... | |
| RUN go install -v ./... | |
| EXPOSE 8080 | |
| ENV GO111MODULE=on | |
| CMD ["project"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment