forked from reginabarzilaygroup/Sybil
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (19 loc) · 833 Bytes
/
Dockerfile
File metadata and controls
24 lines (19 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM continuumio/miniconda3:latest
# Update conda and install Python
RUN conda update conda -y && conda install python=3.10 -y
# Install pip packages
RUN pip install --upgrade pip
COPY requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt
RUN pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu113
# Create application directory
WORKDIR /app
# Copy your script and any other necessary files
# Assuming your script is in sybil/ subfolder on host
COPY . .
# Create mount points for external data and output
# These will be empty in the image but used as mount points
RUN mkdir -p /data /output
ENV PYTHONPATH="/app:${PYTHONPATH}"
# Set default entrypoint with flexible arguments
ENTRYPOINT ["python3", "sybil/sybil_DICOM.py"]