Skip to content

Commit

Permalink
Merge pull request #115 from DCAN-Labs/lundq163-patch-1
Browse files Browse the repository at this point in the history
Update Dockerfile
  • Loading branch information
lundq163 authored Jul 3, 2024
2 parents f80c086 + 3ac4e72 commit a3a70e2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM nvcr.io/nvidia/pytorch:21.11-py3

# Manually update the BIBSnet version when building
ENV BIBSNET_VERSION="3.3.1"
ENV BIBSNET_VERSION="3.3.2"

# Prepare environment
RUN apt-get update && \
Expand Down Expand Up @@ -90,15 +90,15 @@ ENV nnUNet_preprocessed="/opt/nnUNet/nnUNet_raw_data_base/nnUNet_preprocessed" \

RUN mkdir -p /opt/nnUNet/nnUNet_raw_data_base/ /opt/nnUNet/nnUNet_raw_data_base/nnUNet_preprocessed /opt/nnUNet/nnUNet_raw_data_base/nnUNet_trained_models/nnUNet /home/bibsnet/data
#COPY trained_models/Task512_BCP_ABCD_Neonates_SynthSegDownsample.zip /opt/nnUNet/nnUNet_raw_data_base/nnUNet_trained_models/nnUNet
RUN curl -sSL "https://s3.msi.umn.edu/bibsnet-data/bibsnet-v3.3.1.tar.gz" | tar -xzpf - Task526_previous_BIBSNet_Production_Model.tar.gz -O | tar -xzpC /opt/nnUNet/nnUNet_raw_data_base/nnUNet_trained_models/nnUNet --no-same-owner --strip-components 1 && \
curl -sSL "https://s3.msi.umn.edu/bibsnet-data/bibsnet-v3.3.1.tar.gz" | tar -xzpf - Task514_BCP_ABCD_Neonates_SynthSeg_T1Only.tar.gz -O | tar -xzpC /opt/nnUNet/nnUNet_raw_data_base/nnUNet_trained_models/nnUNet --no-same-owner --strip-components 1 &&\
curl -sSL "https://s3.msi.umn.edu/bibsnet-data/bibsnet-v3.3.1.tar.gz" | tar -xzpf - Task515_BCP_ABCD_Neonates_SynthSeg_T2Only.tar.gz -O | tar -xzpC /opt/nnUNet/nnUNet_raw_data_base/nnUNet_trained_models/nnUNet --no-same-owner --strip-components 1 && \
curl -sSL "https://s3.msi.umn.edu/bibsnet-data/bibsnet-v3.3.1.tar.gz" | tar -xzpf - Task540_BIBSNet_Production_Model.tar.gz -O | tar -xzpC /opt/nnUNet/nnUNet_raw_data_base/nnUNet_trained_models/nnUNet --no-same-owner --strip-components 1
RUN curl -sSL "https://s3.msi.umn.edu/bibsnet-data/bibsnet-v3.3.2.tar.gz" | tar -xzpf - Task526_previous_BIBSNet_Production_Model.tar.gz -O | tar -xzpC /opt/nnUNet/nnUNet_raw_data_base/nnUNet_trained_models/nnUNet --no-same-owner --strip-components 1 && \
curl -sSL "https://s3.msi.umn.edu/bibsnet-data/bibsnet-v3.3.2.tar.gz" | tar -xzpf - Task514_BCP_ABCD_Neonates_SynthSeg_T1Only.tar.gz -O | tar -xzpC /opt/nnUNet/nnUNet_raw_data_base/nnUNet_trained_models/nnUNet --no-same-owner --strip-components 1 &&\
curl -sSL "https://s3.msi.umn.edu/bibsnet-data/bibsnet-v3.3.2.tar.gz" | tar -xzpf - Task515_BCP_ABCD_Neonates_SynthSeg_T2Only.tar.gz -O | tar -xzpC /opt/nnUNet/nnUNet_raw_data_base/nnUNet_trained_models/nnUNet --no-same-owner --strip-components 1 && \
curl -sSL "https://s3.msi.umn.edu/bibsnet-data/bibsnet-v3.3.2.tar.gz" | tar -xzpf - Task540_BIBSNet_Production_Model.tar.gz -O | tar -xzpC /opt/nnUNet/nnUNet_raw_data_base/nnUNet_trained_models/nnUNet --no-same-owner --strip-components 1

COPY run.py /home/bibsnet/run.py
COPY src /home/bibsnet/src
COPY bin /home/bibsnet/bin
RUN curl -sSL "https://s3.msi.umn.edu/bibsnet-data/bibsnet-v3.3.1.tar.gz" | tar -xzpf - data.tar.gz -O | tar -xzpC /home/bibsnet/data --no-same-owner --strip-components 1
RUN curl -sSL "https://s3.msi.umn.edu/bibsnet-data/bibsnet-v3.3.2.tar.gz" | tar -xzpf - data.tar.gz -O | tar -xzpC /home/bibsnet/data --no-same-owner --strip-components 1

COPY requirements.txt /home/bibsnet/requirements.txt

Expand Down

0 comments on commit a3a70e2

Please sign in to comment.