Created
October 20, 2023 20:25
-
-
Save Luke-Rogerson/5e981bc7c5747f00f338093d2f3b7826 to your computer and use it in GitHub Desktop.
Dockerfile for docker compose watch example
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.21.3 | |
WORKDIR /app | |
COPY . . | |
RUN go mod download | |
RUN CGO_ENABLED=0 GOOS=linux go build -o main . | |
CMD ["/app/main"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment