diff --git a/dockerfiles/tils.dockerfile b/dockerfiles/tils.dockerfile index 99e7c9a..e84674d 100644 --- a/dockerfiles/tils.dockerfile +++ b/dockerfiles/tils.dockerfile @@ -9,6 +9,6 @@ ENV WSIRUN_MODEL="inceptionv4" ENV WSIRUN_WEIGHTS="TCGA-TILs-v1" # Download the weights. -RUN python -c "from wsi_inference.modellib import models; models.$WSIRUN_MODEL(\"$WSIRUN_WEIGHTS\")" -# Downloaded models are mode 0600. Make them readable by all users. -RUN chmod -R +r $TORCH_HOME/hub/checkpoints/ +RUN python -c "from wsi_inference.modellib import models; models.$WSIRUN_MODEL(\"$WSIRUN_WEIGHTS\")" \ + # Downloaded models are mode 0600. Make them readable by all users. + && chmod -R +r $TORCH_HOME/hub/checkpoints/ diff --git a/dockerfiles/tumor-brca.dockerfile b/dockerfiles/tumor-brca.dockerfile index 36f2f65..7fa4cf5 100644 --- a/dockerfiles/tumor-brca.dockerfile +++ b/dockerfiles/tumor-brca.dockerfile @@ -9,6 +9,6 @@ ENV WSIRUN_MODEL="resnet34" ENV WSIRUN_WEIGHTS="TCGA-BRCA-v1" # Download the weights. -RUN python -c "from wsi_inference.modellib import models; models.$WSIRUN_MODEL(\"$WSIRUN_WEIGHTS\")" -# Downloaded models are mode 0600. Make them readable by all users. -RUN chmod -R +r $TORCH_HOME/hub/checkpoints/ +RUN python -c "from wsi_inference.modellib import models; models.$WSIRUN_MODEL(\"$WSIRUN_WEIGHTS\")" \ + # Downloaded models are mode 0600. Make them readable by all users. + && chmod -R +r $TORCH_HOME/hub/checkpoints/ diff --git a/dockerfiles/tumor-luad.dockerfile b/dockerfiles/tumor-luad.dockerfile index d4b3729..6293740 100644 --- a/dockerfiles/tumor-luad.dockerfile +++ b/dockerfiles/tumor-luad.dockerfile @@ -9,6 +9,6 @@ ENV WSIRUN_MODEL="resnet34" ENV WSIRUN_WEIGHTS="TCGA-LUAD-v1" # Download the weights. -RUN python -c "from wsi_inference.modellib import models; models.$WSIRUN_MODEL(\"$WSIRUN_WEIGHTS\")" -# Downloaded models are mode 0600. Make them readable by all users. -RUN chmod -R +r $TORCH_HOME/hub/checkpoints/ +RUN python -c "from wsi_inference.modellib import models; models.$WSIRUN_MODEL(\"$WSIRUN_WEIGHTS\")" \ + # Downloaded models are mode 0600. Make them readable by all users. + && chmod -R +r $TORCH_HOME/hub/checkpoints/ diff --git a/dockerfiles/tumor-paad.dockerfile b/dockerfiles/tumor-paad.dockerfile index b5ffbf6..0e4a027 100644 --- a/dockerfiles/tumor-paad.dockerfile +++ b/dockerfiles/tumor-paad.dockerfile @@ -9,6 +9,6 @@ ENV WSIRUN_MODEL="resnet34_preact" ENV WSIRUN_WEIGHTS="TCGA-PAAD-v1" # Download the weights. -RUN python -c "from wsi_inference.modellib import models; models.$WSIRUN_MODEL(\"$WSIRUN_WEIGHTS\")" -# Downloaded models are mode 0600. Make them readable by all users. -RUN chmod -R +r $TORCH_HOME/hub/checkpoints/ +RUN python -c "from wsi_inference.modellib import models; models.$WSIRUN_MODEL(\"$WSIRUN_WEIGHTS\")" \ + # Downloaded models are mode 0600. Make them readable by all users. + && chmod -R +r $TORCH_HOME/hub/checkpoints/ diff --git a/dockerfiles/tumor-prad.dockerfile b/dockerfiles/tumor-prad.dockerfile index 1c9b287..545ac9e 100644 --- a/dockerfiles/tumor-prad.dockerfile +++ b/dockerfiles/tumor-prad.dockerfile @@ -9,6 +9,6 @@ ENV WSIRUN_MODEL="resnet34" ENV WSIRUN_WEIGHTS="TCGA-PRAD-v1" # Download the weights. -RUN python -c "from wsi_inference.modellib import models; models.$WSIRUN_MODEL(\"$WSIRUN_WEIGHTS\")" -# Downloaded models are mode 0600. Make them readable by all users. -RUN chmod -R +r $TORCH_HOME/hub/checkpoints/ +RUN python -c "from wsi_inference.modellib import models; models.$WSIRUN_MODEL(\"$WSIRUN_WEIGHTS\")" \ + # Downloaded models are mode 0600. Make them readable by all users. + && chmod -R +r $TORCH_HOME/hub/checkpoints/