Nik Afiq 1b025301d0
All checks were successful
CI / test (push) Successful in 6s
CI / build-ai-gateway (push) Successful in 1m1s
CI / build-ha-gateway (push) Successful in 48s
CI / build-discord-bot (push) Successful in 46s
feat: add tts-gateway module to CI workflow and Dockerfiles
2026-07-24 22:45:54 +09:00

22 lines
526 B
Docker

FROM golang:1.26-alpine AS builder
WORKDIR /workspace
COPY go.work go.work.sum ./
COPY gen/ ./gen/
COPY ai-gateway/ ./ai-gateway/
COPY ha-gateway/ ./ha-gateway/
COPY tts-gateway/ ./tts-gateway/
COPY discord-bot/ ./discord-bot/
WORKDIR /workspace/discord-bot
RUN go mod download
ARG VERSION=dev
RUN CGO_ENABLED=0 GOOS=linux go build \
-ldflags="-s -w -X main.version=${VERSION}" \
-o /discord-bot ./cmd/bot
FROM gcr.io/distroless/static:nonroot
COPY --from=builder /discord-bot /discord-bot
ENTRYPOINT ["/discord-bot"]