forked from phmattisson/MRI2circ
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
40 lines (30 loc) · 1.28 KB
/
Dockerfile
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
32
33
34
35
36
37
38
39
40
#############################################
# Select the OS
FROM nvidia/cuda:11.7.1-cudnn8-runtime-ubuntu20.04
USER root
ENV TZ=US/Eastern
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt update && apt install -y tzdata
#############################################
# Install dependencies
RUN apt update && \
apt install --no-install-recommends -y build-essential software-properties-common && \
add-apt-repository -y ppa:deadsnakes/ppa && \
apt install --no-install-recommends -y python3.9 python3-pip python3-setuptools python3-distutils && \
apt clean && rm -rf /var/lib/apt/lists/*
RUN python3.9 -m pip install --upgrade pip
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
RUN pip3 install --no-cache-dir --upgrade pip && \
pip3 install --no-cache-dir tensorflow==2.10 \
nilearn pandas \
scipy numpy matplotlib tqdm imageio scikit-image \
scikit-learn itk-elastix SimpleITK nibabel intensity-normalization[ants]\
wandb jupyter opencv-python
RUN python3.9 -c "import tensorflow"
COPY scripts /scripts
COPY executables /executables
COPY model /model
COPY shared_data /shared_data
COPY *.py /
# Default command to run on container start
CMD ["python3.9", "/executables/new_process_image_with_options.py"]