Skip to content

Commit 3b62692

Browse files
fix: switch operator and api store to use approved distroless containers (#1570)
Co-authored-by: Hannah Zhang <hannahz@nvidia.com> Co-authored-by: hhzhang16 <54051230+hhzhang16@users.noreply.github.com>
1 parent b367f6e commit 3b62692

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

deploy/cloud/api-store/Earthfile

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,20 @@ uv-base:
2727
WORKDIR /app
2828
COPY uv.lock pyproject.toml README.md /app
2929
RUN uv sync --frozen --no-install-project --no-dev --no-install-workspace --no-editable
30+
# Copy project files
31+
COPY ai_dynamo_store ai_dynamo_store
32+
RUN uv pip install .
33+
# Save the entire app directory with installed packages
34+
SAVE ARTIFACT /app /app
3035

3136
docker:
3237
ARG DOCKER_SERVER=my-registry
3338
ARG IMAGE_TAG=latest
3439
ARG IMAGE=dynamo-api-store
35-
FROM +uv-base
36-
# Copy project files
37-
COPY ai_dynamo_store ai_dynamo_store
38-
RUN uv pip install .
40+
FROM nvcr.io/nvidia/distroless/python:3.12-v3.4.13-dev
41+
# Copy the entire installed environment from uv-base
42+
COPY +uv-base/app /app
43+
WORKDIR /app
44+
ENV PATH="/app/.venv/bin:$PATH"
3945
ENTRYPOINT ["ai-dynamo-store"]
40-
SAVE IMAGE --push $DOCKER_SERVER/$IMAGE:$IMAGE_TAG
46+
SAVE IMAGE --push $DOCKER_SERVER/$IMAGE:$IMAGE_TAG

deploy/cloud/operator/Earthfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ docker:
4040
ARG DOCKER_SERVER=my-registry
4141
ARG IMAGE_TAG=latest
4242
ARG IMAGE_SUFFIX=dynamo-operator
43-
FROM gcr.io/distroless/static-debian11
43+
FROM nvcr.io/nvidia/distroless/go:v3.1.9-dev
4444
WORKDIR /
4545
COPY +build/manager .
4646
USER 65532:65532

0 commit comments

Comments
 (0)