2022-03-05 23:25:56 +00:00
|
|
|
|
2022-06-05 13:15:03 +00:00
|
|
|
FROM nvcr.io/nvidia/tritonserver:22.04-py3
|
2022-03-05 23:25:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ENV LC_ALL=C.UTF-8
|
|
|
|
|
|
|
|
# install base package
|
2022-10-07 23:22:32 +00:00
|
|
|
RUN pip3 install --no-cache-dir clearml-serving
|
2022-03-05 23:25:56 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2022-10-07 23:22:32 +00:00
|
|
|
RUN pip3 install --no-cache-dir -r /root/clearml/clearml_serving/engines/triton/requirements.txt
|
2022-03-05 23:25:56 +00:00
|
|
|
|
|
|
|
# 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"]
|