Skip to content

Commit 963b8ed

Browse files
authored
Add missing dependencies to torchserve docker file (open-mmlab#2133)
1 parent 2eb13c6 commit 963b8ed

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docker/serve/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ ARG MMSEG="0.28.0"
88

99
ENV PYTHONUNBUFFERED TRUE
1010

11+
# NVIDIA APT KEYS
12+
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
13+
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub
14+
1115
RUN apt-get update && \
1216
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
1317
ca-certificates \
@@ -21,7 +25,7 @@ ENV PATH="/opt/conda/bin:$PATH"
2125
RUN export FORCE_CUDA=1
2226

2327
# TORCHSEVER
24-
RUN pip install torchserve torch-model-archiver
28+
RUN pip install torchserve torch-model-archiver nvgpu
2529

2630
# MMLAB
2731
ARG PYTORCH

0 commit comments

Comments
 (0)