Skip to content

Commit eb44f55

Browse files
author
Álvaro Bartolomé
authored
included pytorch versions & find-links flag on pip
1 parent 3c2ae6d commit eb44f55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deployment/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ RUN update-alternatives --install /usr/local/bin/pip pip /usr/local/bin/pip3 1
2828

2929
RUN pip install -U pip setuptools
3030

31-
RUN pip install --no-cache-dir torch torchvision torchserve
31+
RUN pip install --no-cache-dir torch==1.7.0+cpu torchvision==0.8.1+cpu torchserve==0.2.0 -f https://download.pytorch.org/whl/torch_stable.html
3232

3333
RUN useradd -m model-server
3434

@@ -50,4 +50,4 @@ USER model-server
5050
WORKDIR /home/model-server
5151
ENV TEMP=/home/model-server/tmp
5252
ENTRYPOINT ["/usr/local/bin/dockerd-entrypoint.sh"]
53-
CMD ["serve"]
53+
CMD ["serve"]

0 commit comments

Comments
 (0)