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=""
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
```bash
|
||||
kubectl create ns mindforge
|
||||
kubectl create secret generic mindforge-secrets \
|
||||
kubectl create secret generic mindforge-secrets -n mindforge \
|
||||
--from-literal=GIT_REPOSITORY="your_git_repository" \
|
||||
--from-literal=GEMINI_API_KEY="your_gemini_api_key" \
|
||||
--from-literal=OPENAI_API_KEY="your_openai_api_key" \
|
||||
|
||||
Reference in New Issue
Block a user