Skip to content

Instantly share code, notes, and snippets.

@vkorbes
Created April 25, 2019 12:01
Show Gist options
  • Select an option

  • Save vkorbes/106c24b4b688328d5d65f5a3c7953488 to your computer and use it in GitHub Desktop.

Select an option

Save vkorbes/106c24b4b688328d5d65f5a3c7953488 to your computer and use it in GitHub Desktop.
Dockerfile
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