File size: 422 Bytes
a1f8876 8693fbf a1f8876 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
FROM python:3.11-slim AS model
WORKDIR /app
RUN apt update && apt install -y libgl1-mesa-glx libglib2.0-0
RUN python -m pip install --upgrade pip uv
COPY pyproject.toml .
RUN python -m uv pip install -r pyproject.toml
COPY models.py .
RUN python models.py
FROM nvcr.io/nvidia/tritonserver:24.05-py3 AS runtime
COPY --from=model --chmod=777 /app/models /models
CMD ["tritonserver", "--model-repository=/models"]
|