File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff 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
3136docker :
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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments