<reponame>johnugeorge/medperf
FROM cbica/captk:release-1.8.1

RUN yum install -y xz-devel

RUN pip install --upgrade pip

RUN pip install pandas synapseclient nibabel

RUN yum install python3.8 python3-pip -y

RUN cd /work/CaPTk/bin/ && \
    curl https://captk.projects.nitrc.org/Hausdorff95_linux.zip --output Hausdorff95_linux.zip && \
    unzip -o Hausdorff95_linux.zip && \
    chmod a+x Hausdorff95 && \
    rm Hausdorff95_linux.zip

COPY ./requirements.txt project/requirements.txt 

RUN pip3 install --upgrade pip

RUN pip3 install --default-timeout=10000 --no-cache-dir -r project/requirements.txt

ENV LANG C.UTF-8

COPY . /project

WORKDIR /project

RUN pip install -r requirements.txt

ENTRYPOINT ["python3", "mlcube.py"]
