Switch from static to base Debian 12 distroless image for runtime support

This commit is contained in:
2025-05-18 13:59:16 +03:30
parent d9fdd6919f
commit 98c56daf24

View File

@@ -16,7 +16,7 @@ COPY internal /app/internal/
RUN CGO_ENABLED=1 GOOS=linux go build -o /CatsOfMastodonGo ./cmd/CatsOfMastodonBotGo/main.go RUN CGO_ENABLED=1 GOOS=linux go build -o /CatsOfMastodonGo ./cmd/CatsOfMastodonBotGo/main.go
# Deploy the application binary into a lean image # Deploy the application binary into a lean image
FROM gcr.io/distroless/static-debian12 AS build-release-stage FROM gcr.io/distroless/base-debian12 AS build-release-stage
WORKDIR / WORKDIR /