Fix build path to specify main.go entry point in Dockerfile

This commit is contained in:
2025-05-18 13:02:24 +03:30
parent ad790b3d36
commit e668e795fb

View File

@@ -13,7 +13,7 @@ RUN go mod download
COPY cmd/ ./ COPY cmd/ ./
COPY internal ./ COPY internal ./
RUN CGO_ENABLED=0 GOOS=linux go build -o /CatsOfMastodonGo RUN CGO_ENABLED=0 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/static-debian12 AS build-release-stage