mirror of
https://github.com/clearml/clearml-serving
synced 2025-01-31 10:56:52 +00:00
24 lines
665 B
Docker
24 lines
665 B
Docker
|
|
FROM nvcr.io/nvidia/tritonserver:22.07-py3
|
|
|
|
|
|
ENV LC_ALL=C.UTF-8
|
|
|
|
# install base package
|
|
RUN pip3 install --no-cache-dir -U pip
|
|
RUN pip3 install --no-cache-dir clearml-serving
|
|
|
|
# get latest execution code from the git repository
|
|
# RUN cd $HOME && git clone https://github.com/allegroai/clearml-serving.git
|
|
COPY clearml_serving /root/clearml/clearml_serving
|
|
|
|
RUN pip3 install --no-cache-dir -r /root/clearml/clearml_serving/engines/triton/requirements.txt
|
|
|
|
# default serving port
|
|
EXPOSE 8001
|
|
|
|
# environement variable to load Task from CLEARML_SERVING_TASK_ID, CLEARML_SERVING_PORT
|
|
|
|
WORKDIR /root/clearml/
|
|
ENTRYPOINT ["clearml_serving/engines/triton/entrypoint.sh"]
|