-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile
More file actions
38 lines (32 loc) · 820 Bytes
/
dockerfile
File metadata and controls
38 lines (32 loc) · 820 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
FROM pytorch/pytorch:2.3.1-cuda12.1-cudnn8-runtime
RUN apt-get update && apt-get install -y --no-install-recommends \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender-dev \
libgl1-mesa-dev \
build-essential \
python3-pip \
python3-dev \
cmake \
libopenmpi-dev \
zlib1g-dev \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy all files to /workspace
COPY . /workspace
# Set working directory
WORKDIR /workspace
# Run the Python script to install requirements
RUN pip install --no-cache-dir -r requirements-dev.txt \
&& pip install jupyter
# Clean up unnecessary packages
RUN apt-get purge -y \
build-essential \
cmake \
libopenmpi-dev \
zlib1g-dev \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
CMD ["bash"]