fixing docker and deployment instructions
All checks were successful
Mindforge Cronjob Build and Deploy / Build Mindforge Cronjob Image (push) Successful in 39s
Mindforge Cronjob Build and Deploy / Deploy Mindforge Cronjob (internal) (push) Successful in 44s

This commit is contained in:
2026-03-14 11:21:45 -03:00
parent 9ac593edfc
commit 3f4cbfd41d
2 changed files with 5 additions and 4 deletions

View File

@@ -14,9 +14,10 @@ COPY . .
# Build statically for Linux
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
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
# Use alpine to provide git (QEMU overhead for apk add is minimal)
FROM alpine:latest
RUN apk --no-cache add git ca-certificates openssh-client
COPY --from=builder /app/mindforge-cronjob /app/mindforge-cronjob
ENV GIT_REPOSITORY=""
ENV GEMINI_API_KEY=""