Skip to content

Instantly share code, notes, and snippets.

@vkorbes
Last active November 5, 2019 12:31
Show Gist options
  • Select an option

  • Save vkorbes/339448be410045a8154146355362355b to your computer and use it in GitHub Desktop.

Select an option

Save vkorbes/339448be410045a8154146355362355b to your computer and use it in GitHub Desktop.
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"]
ONBUILD COPY go.mod ./
ONBUILD COPY *.go ./
ONBUILD RUN go build .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment