From 3f39fb449f8444b6d6f88c4da83c907971dd558a Mon Sep 17 00:00:00 2001 From: Jirka Borovec Date: Wed, 17 Mar 2021 16:29:29 +0100 Subject: [PATCH] fix --- dockers/nvidia/Dockerfile | 8 ++++---- dockers/release/Dockerfile | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/dockers/nvidia/Dockerfile b/dockers/nvidia/Dockerfile index 30fc4c3aeafa5..4671044df2a98 100644 --- a/dockers/nvidia/Dockerfile +++ b/dockers/nvidia/Dockerfile @@ -22,18 +22,18 @@ COPY ./ ./pytorch-lightning/ # install dependencies RUN \ - # Disable cache #conda install "pip>20.1" && \ - #pip config set global.cache-dir false && \ - if [ -n $LIGHTNING_VERSION ] ; then \ + if [ ! -z "$LIGHTNING_VERSION" ] ; then \ rm -rf pytorch-lightning ; \ wget https://github.com/PyTorchLightning/pytorch-lightning/archive/${LIGHTNING_VERSION}.zip --progress=bar:force:noscroll ; \ unzip ${LIGHTNING_VERSION}.zip ; \ mv pytorch-lightning-*/ pytorch-lightning ; \ rm *.zip ; \ fi && \ + # fixme, unfreeze + pip install "torchtext==0.6" && \ pip install ./pytorch-lightning["extra"] --no-cache-dir && \ - rm -rf pytorch-lightning && \ + rm -rf pytorch-lightning RUN python --version && \ pip --version && \ diff --git a/dockers/release/Dockerfile b/dockers/release/Dockerfile index 3584ee02746e3..0eec1e41a5a3f 100644 --- a/dockers/release/Dockerfile +++ b/dockers/release/Dockerfile @@ -25,7 +25,6 @@ COPY ./ ./pytorch-lightning/ # install dependencies RUN \ - # Disable cache #conda install "pip>20.1" && \ if [ ! -z "$LIGHTNING_VERSION" ] ; then \ rm -rf pytorch-lightning ; \