feat: runtime bootstrap snapshot cache with backoff
This commit is contained in:
1 parent
08f60a14d1
commit
aa6bb23e24
19 files changed
+1400
-384
No files matched your search
+3
-4
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user