Skip to content

Instantly share code, notes, and snippets.

@Luke-Rogerson
Created October 20, 2023 20:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Luke-Rogerson/5e981bc7c5747f00f338093d2f3b7826 to your computer and use it in GitHub Desktop.
Save Luke-Rogerson/5e981bc7c5747f00f338093d2f3b7826 to your computer and use it in GitHub Desktop.
Dockerfile for docker compose watch example
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