fixing docker and deployment instructions
This commit is contained in:
@@ -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=""
|
||||
|
||||
Reference in New Issue
Block a user