summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorChia <Chia@93.nz>2026-08-06 15:58:57 +1200
committerChia <Chia@93.nz>2026-08-06 15:58:57 +1200
commit3f702084d20b3c3a3ea916f3110e99b22bda60b3 (patch)
tree517f76c51025ce1ee085ea4898c60f799e5c37ea /Dockerfile
parent41e322c53d7b4b796eb377d0df9c29ecd10ba431 (diff)
feat: complete commercial developer workflowspublish-commercial-control-plane
Add tenant-safe usage observability, prepaid billing controls, API key lifecycle management, Embeddings metering, configurable billing alerts, and resilient provider health propagation. Harden Stripe failure handling, migrations, readiness, and the authenticated control-plane UI with end-to-end verification evidence.
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index fb88a47..6b9c1bf 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -6,7 +6,9 @@ COPY go.sum ./
RUN go mod download
COPY cmd ./cmd
COPY internal ./internal
-RUN CGO_ENABLED=0 go build -buildvcs=false -trimpath -ldflags="-s -w" -o /out/aigw ./cmd/aigw
+RUN CGO_ENABLED=0 go build -buildvcs=false -trimpath -ldflags="-s -w" -o /out/aigw ./cmd/aigw && \
+ CGO_ENABLED=0 go build -buildvcs=false -trimpath -ldflags="-s -w" -o /out/mockupstream ./cmd/mockupstream && \
+ CGO_ENABLED=0 go build -buildvcs=false -trimpath -ldflags="-s -w" -o /out/stripe-preflight ./cmd/stripe-preflight
FROM build AS test
CMD ["go", "test", "./..."]
@@ -15,6 +17,8 @@ FROM alpine:3.22
RUN apk add --no-cache ca-certificates && adduser -D -H -u 10001 aigw
USER aigw
COPY --from=build /out/aigw /usr/local/bin/aigw
+COPY --from=build /out/mockupstream /usr/local/bin/mockupstream
+COPY --from=build /out/stripe-preflight /usr/local/bin/stripe-preflight
EXPOSE 8080 8081 8082 9090
ENTRYPOINT ["/usr/local/bin/aigw"]
CMD ["-config", "/etc/aigw/config.json"]