File size: 561 Bytes
7bfa692
 
 
 
 
 
 
47bd8dc
 
7bfa692
47bd8dc
 
 
 
 
 
7bfa692
 
 
47bd8dc
 
7bfa692
47bd8dc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM python:3.10-slim

WORKDIR /home/user/app

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

# πŸ”§ Crear carpetas de cache locales
RUN mkdir -p /home/user/app/cache && chmod -R 777 /home/user/app/cache

# πŸ”§ Variables de entorno
ENV TRANSFORMERS_CACHE=/home/user/app/cache/transformers
ENV HF_HOME=/home/user/app/cache/huggingface
ENV NUMBA_CACHE_DIR=/home/user/app/cache/numba
ENV NUMBA_DISABLE_JIT=1
ENV TTS_CACHE_DIR=/home/user/app/cache/tts
ENV PORT=7860
ENV API_KEY="nasfit_secret_key"

COPY . .

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