Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ RUN mkdir -p /home/$USERNAME/.cache/
ENTRYPOINT ["/bin/bash"]

############################################
############# Final Build ##################
############# Env Builder ##################
############################################
FROM base AS final
FROM base AS env-builder

# Create virtual environment
RUN mkdir /opt/$APP_NAME \
Expand All @@ -79,7 +79,17 @@ RUN uv sync --active --no-install-project
COPY . .

# Install the project
RUN uv sync --active --no-dev
RUN uv pip install --no-deps .

############################################
############# Final Build ##################
############################################
FROM nvcr.io/nvidia/distroless/python:3.12-v3.4.17-dev AS final

COPY --from=env-builder /opt/aiperf/venv /opt/aiperf/venv

ENV VIRTUAL_ENV=/opt/aiperf/venv \
PATH="/opt/aiperf/venv/bin:${PATH}"

# Command to run the application
ENTRYPOINT ["aiperf"]