File size: 500 Bytes
dedde98
4cccbf3
 
 
17e31af
 
 
 
 
 
 
 
 
4cccbf3
dedde98
 
4cccbf3
 
f183b35
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM yogi0421/dlib-base-image:python38-dlib19.24.0

WORKDIR /app

# Choose a writable directory, e.g., /home/user/huggingface
RUN mkdir -p /home/user/huggingface
RUN chmod -R 777 /home/user/huggingface

# Then set environment variables
ENV HF_HOME=/home/user/huggingface \
    HF_HUB_CACHE=/home/user/huggingface/hub \
    TRANSFORMERS_CACHE=/home/user/huggingface/hub

COPY requirements.txt .
RUN pip install --upgrade pip \
    && pip install -r requirements.txt

COPY . .
CMD ["python", "app.py"]