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

23 lines
538 B
Docker

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