forked from kbamps/TOF_Segmentation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (25 loc) · 1.15 KB
/
Copy pathDockerfile
File metadata and controls
31 lines (25 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Use the base image from Docker Hub with the desired version of DeepVoxNet2.
FROM jeroenbertels/deepvoxnet2:latest
# Create directories to store application data inside the container.
RUN mkdir -p /app
RUN mkdir -p /in
RUN mkdir -p /out
# Install any required Python packages using pip.
RUN pip install pylibjpeg
RUN pip install opencv-python-headless
RUN pip install tqdm
# Copy the necessary files and folders into the container.
# Adjust 'main_folder' and 'predict_on_new_cases' accordingly to your project's directory structure.
ADD dicomorganizer /app/dicomorganizer
# ADD main_folder /app/main_folder
ADD main.py /app/main.py
ADD additional_functions /app/additional_functions
# Add app path to the Python path.
ENV PYTHONPATH "${PYTHONPATH}:/app"
# Define the entry point for the Docker container.
# This is the command that will be executed when the container is sstarted.
# Modify the script name and arguments as needed for your application.
# In this case, the 'TOF_ACDC_predict_UZL_enhancedDCM.py' script will read input files from '/in'
# and save the output to '/out'.
ENTRYPOINT ["python", "/app/main.py"]
CMD ["--src_path", "/in", "--dst_path", "/out"]