Dockerfile 506 Bytes
Newer Older
1
FROM nvcr.io/nvidia/tritonserver:23.07-py3
Nikhilesh Bhatnagar's avatar
Nikhilesh Bhatnagar committed
2 3 4 5 6 7
WORKDIR /opt/tritonserver
RUN apt-get update && apt-get install -y python3.10-venv
ENV VIRTUAL_ENV=/opt/dhruva-mt
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
RUN pip install -U ctranslate2 OpenNMT-py==1.2.0 git+https://github.com/vmujadia/tokenizer.git
8 9 10 11
CMD ["tritonserver", "--model-repository=/models", "--http-port=8010", "--grpc-port=8020", "--metrics-port=8030", "--cache-config=local,size=1048576"]
EXPOSE 8010
EXPOSE 8020
EXPOSE 8030