Skip to content

Commit

Permalink
fixed posix expression
Browse files Browse the repository at this point in the history
  • Loading branch information
harshbafna committed Aug 24, 2020
1 parent d9e423b commit e36f76f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 1 \
# This is only useful for cuda env
RUN export USE_CUDA=1

RUN if [ "$BASE_IMAGE" = "${BASE_IMAGE%"cuda:10.1"*$}" ]; then \
RUN if [ "$BASE_IMAGE" != "${BASE_IMAGE#*cuda:10.1}" ]; then \
pip install --no-cache-dir torch==1.6.0+cu101 torchvision==0.7.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html; \
else \
pip install --no-cache-dir torch torchvision torchtext torchserve torch-model-archiver; \
Expand Down

0 comments on commit e36f76f

Please sign in to comment.