pathii commited on
Commit
11f2c82
·
verified ·
1 Parent(s): fcc84c3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -3
Dockerfile CHANGED
@@ -1,10 +1,24 @@
1
  FROM python:3.8-slim
2
 
3
- RUN pip install --upgrade pip setuptools wheel
4
- RUN pip install torch transformers datasets deepspeed vllm accelerate unsloth
5
- RUN pip install huggingface_hub
 
 
 
 
 
 
 
 
 
 
 
6
 
7
  WORKDIR /app
8
  COPY . /app
9
 
 
 
 
10
  CMD ["python", "train.py"]
 
1
  FROM python:3.8-slim
2
 
3
+ # Set environment variables
4
+ ENV PYTHONUNBUFFERED=1 \
5
+ DEBIAN_FRONTEND=noninteractive
6
+
7
+ # Install system dependencies
8
+ RUN apt-get update && apt-get install -y \
9
+ git \
10
+ curl \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ # Install Python dependencies
14
+ COPY requirements.txt .
15
+ RUN pip install --no-cache-dir --upgrade pip setuptools wheel && \
16
+ pip install --no-cache-dir -r requirements.txt
17
 
18
  WORKDIR /app
19
  COPY . /app
20
 
21
+ # Pre-create directories needed by training script
22
+ RUN mkdir -p /app/checkpoints /app/logs
23
+
24
  CMD ["python", "train.py"]