-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (24 loc) · 831 Bytes
/
Dockerfile
File metadata and controls
31 lines (24 loc) · 831 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
# Use the official PyTorch image as the base image
FROM pytorch/pytorch:2.1.2-cuda12.1-cudnn8-devel
ENV TZ=America/New_York
ENV DEBIAN_FRONTEND=noninteractive
ENV CUDA_HOME=/usr/local/cuda
# Update the package list and install necessary packages
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
curl \
unzip \
software-properties-common \
apt-transport-https ca-certificates gnupg lsb-release gnupg \
make bash-completion tree vim less tmux nmap nano wget \
build-essential libfreetype6-dev \
pkg-config \
graphviz \
git \
htop \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Remove the requirements.txt file
RUN rm requirements.txt