File size: 316 Bytes
20b9ba0
 
 
 
 
 
 
 
 
bdf605a
 
 
 
bdc7c7d
 
20b9ba0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM python:3.10

WORKDIR /app

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

# Create writable cache directory
RUN mkdir -p /app/.cache/huggingface && chmod -R 777 /app/.cache

# Set huggingface cache directory
ENV HF_HOME=/app/.cache/huggingface

CMD ["python", "train.py"]