From f94cf525684b5af758f720d18b54a3b558622520 Mon Sep 17 00:00:00 2001 From: Jose Henrique Date: Fri, 13 Mar 2026 22:18:33 -0300 Subject: [PATCH] fix dockerfile --- mindforge.cronjob/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mindforge.cronjob/Dockerfile b/mindforge.cronjob/Dockerfile index ac701fb..6acec50 100644 --- a/mindforge.cronjob/Dockerfile +++ b/mindforge.cronjob/Dockerfile @@ -8,9 +8,11 @@ ARG TARGETOS RUN apk --no-cache add ca-certificates WORKDIR /app +COPY go.mod go.sum ./ +RUN go mod download COPY . . # Build statically for Linux -RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o mindforge-cronjob main.go +RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o mindforge-cronjob ./cmd/mindforge.cronjob # Use scratch to avoid QEMU: no foreign-arch commands to emulate FROM scratch