Jcalemcg commited on
Commit
2d504b8
·
verified ·
1 Parent(s): c0cc77b

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -0
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM nvidia/cuda:12.1.0-devel-ubuntu22.04
2
+
3
+ # Set environment variables
4
+ ENV DEBIAN_FRONTEND=noninteractive
5
+ ENV PYTHONUNBUFFERED=1
6
+
7
+ # Install system dependencies
8
+ RUN apt-get update && apt-get install -y \
9
+ python3.10 \
10
+ python3-pip \
11
+ git \
12
+ && rm -rf /var/lib/apt/lists/*
13
+
14
+ # Set working directory
15
+ WORKDIR /app
16
+
17
+ # Copy requirements and install
18
+ COPY requirements.txt .
19
+ RUN pip3 install --no-cache-dir -r requirements.txt
20
+
21
+ # Copy training script
22
+ COPY train.py .
23
+ COPY README.md .
24
+
25
+ # Run the training script
26
+ CMD ["python3", "train.py"]