Created
April 25, 2019 12:01
-
-
Save vkorbes/106c24b4b688328d5d65f5a3c7953488 to your computer and use it in GitHub Desktop.
Dockerfile
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.11.9-alpine3.9 | |
| WORKDIR /go/src/app | |
| RUN apk add - no-cache entr git gcc musl-dev | |
| ENV GO111MODULE=on | |
| ENTRYPOINT ["/bin/sh", "-c"] | |
| CMD ["./app"] | |
| EXPOSE 8080 | |
| COPY go.mod hotreload.sh ./ | |
| RUN go mod vendor | |
| COPY *.go ./ | |
| RUN go build . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment