feat: runtime bootstrap snapshot cache with backoff

This commit is contained in:
Noel Sabia committed 2026-11-14 06:08:53 +01:00
1 parent 08f60a14d1
commit aa6bb23e24
19 files changed
+1400 -384

No files matched your search

+3 -4
View File
@@ -17,11 +17,10 @@ FROM gcr.io/distroless/static-debian12:nonroot
WORKDIR /app
COPY --from=build /out/api /app/api
# Baked fallback data lives in the image; there is no runtime data fetch.
COPY --from=build /src/testdata/data /app/data
ENV DATA_DIR=/app/data \
PORT=8080
# No data is baked into the image. The API fetches FastAPI /bootstrap at
# startup, caches the snapshot in memory, and refreshes it in the background.
ENV PORT=8080
EXPOSE 8080
# Numeric UID/GID: the kubelet cannot verify named users for runAsNonRoot.