FROM golang:latest AS builder WORKDIR /app COPY . . # Build static binary RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o discord-gpt-bot main.go FROM debian:bookworm-slim # ✅ Install CA certs RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/* WORKDIR /app COPY --from=builder /app/discord-gpt-bot . CMD ["./discord-gpt-bot"]