Skip to content

Instantly share code, notes, and snippets.

@dennbagas
Last active February 25, 2022 15:17
Show Gist options
  • Save dennbagas/5244fdf77e8ec5a433b16d3381a7a4a0 to your computer and use it in GitHub Desktop.
Save dennbagas/5244fdf77e8ec5a433b16d3381a7a4a0 to your computer and use it in GitHub Desktop.
Golang in container Hot Reload
FROM golang:alpine
WORKDIR /go/src/app
COPY . .
RUN go mod download -x
RUN go get github.com/githubnemo/CompileDaemon
ENTRYPOINT CompileDaemon --build="go build -o tmp/main" --command="./tmp/main"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment