Last active
February 25, 2022 15:17
-
-
Save dennbagas/5244fdf77e8ec5a433b16d3381a7a4a0 to your computer and use it in GitHub Desktop.
Golang in container Hot Reload
This file contains 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: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