-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (33 loc) · 992 Bytes
/
Dockerfile
File metadata and controls
40 lines (33 loc) · 992 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM python:3.9-slim-bullseye
# Install system dependencies
RUN apt-get update --fix-missing && \
apt-get install -y --no-install-recommends \
wget \
bzip2 \
curl \
git \
libgfortran5 \
libxt6 \
libgl1-mesa-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Set up virtual environment
ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv $VIRTUAL_ENV && \
/opt/venv/bin/python3 -m pip install --upgrade pip
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
# Install Python dependencies
RUN pip install numpy matplotlib scikit-image torch torchvision nibabel pydicom
# Create application directory
WORKDIR /app
# Copy the entire project structure
COPY ccta/ /app/ccta/
COPY docker/ /app/docker/
COPY models/ /app/models/
COPY run.py /app/
COPY __init__.py /app/
# Set the working directory for data (if needed for input/output)
WORKDIR /data
# Set the entry point to your main run.py file
ENTRYPOINT ["/opt/venv/bin/python3", "-u", "/app/run.py"]
CMD ["-h"]