-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
51 lines (40 loc) · 1.2 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
41
42
43
44
45
46
47
48
49
50
51
FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu20.04
# Set environment to avoid interactive prompts
ENV DEBIAN_FRONTEND=noninteractive
# Install system dependencies
RUN apt-get update && apt-get install -y \
python3.10 \
python3-pip \
build-essential \
gcc \
g++ \
libatlas-base-dev \
libopenblas-dev \
libhdf5-dev \
swig \
tzdata \
&& ln -s /usr/bin/python3 /usr/bin/python \
&& rm -rf /var/lib/apt/lists/*
# Set timezone (e.g., UTC) to avoid configuration prompts
RUN echo "Etc/UTC" > /etc/timezone && \
ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime && \
dpkg-reconfigure -f noninteractive tzdata
WORKDIR /app
RUN pip install --upgrade pip
RUN pip install --no-cache-dir \
hatchling \
setuptools>=45 \
wheel \
swig>=4.0
COPY . .
RUN pip install . --no-cache-dir
RUN pip install cupy-cuda11x
# Install Jupyter Notebook and related packages
RUN pip install --no-cache-dir \
notebook \
ipykernel \
ipython
EXPOSE 8888
# Set the default command (modify as needed)
# CMD ["python", "-c", "from vbi.utils import test_imports; test_imports()"]
CMD ["jupyter", "notebook", "--ip=0.0.0.0", "--port=8888", "--no-browser", "--allow-root"]