From 36aa4589f3c2da609d7185dd90f6d44fecb86e8d Mon Sep 17 00:00:00 2001 From: Mohammad Mahdi Date: Sun, 18 May 2025 13:04:41 +0330 Subject: [PATCH] Fix go build path by adding ./ prefix for proper module resolution --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2259884..cb25eac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ RUN go mod download COPY cmd/ ./ COPY internal ./ -RUN CGO_ENABLED=0 GOOS=linux go build -o /CatsOfMastodonGo cmd/CatsOfMastodonBotGo/main.go +RUN CGO_ENABLED=0 GOOS=linux go build -o /CatsOfMastodonGo ./cmd/CatsOfMastodonBotGo/main.go # Deploy the application binary into a lean image FROM gcr.io/distroless/static-debian12 AS build-release-stage