Files
infra-kit/examples/go-service/Dockerfile
T
stolzor 64be99308b
terraform / check (push) Canceled after 0s
Initial commit
2026-10-11 20:30:21 +03:00

12 lines
225 B
Docker

FROM golang:1.27-alpine AS build
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -o /service .
FROM alpine:3
COPY --from=build /service /service
USER nobody
ENTRYPOINT ["/service"]