forked from mtusi2026/mtusi2026lab4
15 lines
293 B
Docker
15 lines
293 B
Docker
FROM golang:1.27.1 AS build
|
|
WORKDIR /src
|
|
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
|
|
COPY . .
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -o /out/reconcile ./cmd/reconcile
|
|
|
|
FROM gcr.io/distroless/static-debian12:nonroot
|
|
WORKDIR /app
|
|
COPY --from=build /out/reconcile .
|
|
|
|
ENTRYPOINT ["/app/reconcile"]
|