This commit is contained in:
2026-11-26 18:41:51 +03:00
parent 1d81159dd3
commit 01839ea890
45 changed files with 7796 additions and 170 deletions
+3 -3
View File
@@ -1,12 +1,12 @@
FROM golang:1.27-alpine AS builder
FROM golang:1.27.1-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY cmd ./cmd
COPY internal ./internal
RUN --mount=type=cache,target=/root/.cache/go-build CGO_ENABLED=0 GOOS=linux go build -trimpath -o /out/api ./cmd/api \
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg/mod \
CGO_ENABLED=0 GOOS=linux go build -trimpath -o /out/api ./cmd/api \
&& CGO_ENABLED=0 GOOS=linux go build -trimpath -o /out/reconcile ./cmd/reconcile \
&& CGO_ENABLED=0 GOOS=linux go build -trimpath -o /out/worker ./cmd/worker