diff --git a/dockerfiles/tils.dockerfile b/dockerfiles/tils.dockerfile index a91cc17..99e7c9a 100644 --- a/dockerfiles/tils.dockerfile +++ b/dockerfiles/tils.dockerfile @@ -10,3 +10,5 @@ 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/ diff --git a/dockerfiles/tumor-brca.dockerfile b/dockerfiles/tumor-brca.dockerfile index f9a5699..36f2f65 100644 --- a/dockerfiles/tumor-brca.dockerfile +++ b/dockerfiles/tumor-brca.dockerfile @@ -10,3 +10,5 @@ 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/ diff --git a/dockerfiles/tumor-luad.dockerfile b/dockerfiles/tumor-luad.dockerfile index a88dbf2..d4b3729 100644 --- a/dockerfiles/tumor-luad.dockerfile +++ b/dockerfiles/tumor-luad.dockerfile @@ -10,3 +10,5 @@ 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/ diff --git a/dockerfiles/tumor-paad.dockerfile b/dockerfiles/tumor-paad.dockerfile index 8a85b4e..b5ffbf6 100644 --- a/dockerfiles/tumor-paad.dockerfile +++ b/dockerfiles/tumor-paad.dockerfile @@ -10,3 +10,5 @@ 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/ diff --git a/dockerfiles/tumor-prad.dockerfile b/dockerfiles/tumor-prad.dockerfile index 6cf3d18..1c9b287 100644 --- a/dockerfiles/tumor-prad.dockerfile +++ b/dockerfiles/tumor-prad.dockerfile @@ -10,3 +10,5 @@ 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/