1
1
# Use the NVIDIA CUDA base image with CUDA 12.5.1 and cuDNN on Ubuntu 22.04
2
2
FROM nvidia/cuda:12.2.2-cudnn8-runtime-ubuntu22.04
3
3
4
+ ENV DEBIAN_FRONTEND=noninteractive
5
+
4
6
# Install Python, pip, and bash
5
7
RUN apt-get update && apt-get install -y \
6
8
python3 \
@@ -9,17 +11,28 @@ RUN apt-get update && apt-get install -y \
9
11
# Set Python3 as the default python
10
12
RUN ln -s /usr/bin/python3 /usr/bin/python
11
13
14
+ # Set the timezone
15
+ ENV TZ=Europe/Berlin
16
+
17
+ # Install tzdata and other packages
18
+ RUN apt-get update && \
19
+ apt-get install -y --no-install-recommends tzdata curl vim && \
20
+ ln -fs /usr/share/zoneinfo/$TZ /etc/localtime && \
21
+ dpkg-reconfigure --frontend noninteractive tzdata && \
22
+ apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
23
+
24
+
12
25
RUN apt-get update && apt-get install -y \
13
- bash git-all unzip \
26
+ bash git-all unzip software-properties-common \
14
27
libgl1-mesa-glx libglib2.0-0 \
15
28
build-essential libopenmpi-dev \
16
29
&& rm -rf /var/lib/apt/lists/*
17
30
18
31
# Install pip, JupyterLab, and attrs
19
32
RUN pip install --upgrade pip
20
33
RUN pip install --upgrade awscli attrs jupyterlab jupyterlab-git
21
- RUN pip install --upgrade opencv-python flake8 matplotlib pytest shapely tqdm
22
- RUN pip install --upgrade opencv-python opencv-python torch torch_geometric torchtyping wandb x-transformers
34
+ RUN pip install --upgrade flake8 matplotlib pytest shapely tqdm
35
+ RUN pip install --upgrade opencv-python torch torch_geometric torchtyping wandb x-transformers
23
36
24
37
# Expose port 8888 for JupyterLab
25
38
EXPOSE 8888
0 commit comments