Files
zeekayandHanzo Dev 20a0a3f46a Go 1.27.1, and the code it can say more simply
Both modules declare go 1.27.1 and the example image follows. go fix
applied the modernizers; omitzero is not applied, since it changes what
the JSON says.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-16 19:42:24 -07:00

17 lines
250 B
Docker

FROM golang:1.27.1-alpine
# Set working directory
WORKDIR /app
# Copy go mod files
COPY go.mod go.sum ./
# Download dependencies
RUN go mod download
# Copy source code
COPY main.go ./
# Build and run the application
CMD ["go", "run", "main.go"]