PluzzAI / Dockerfile
Adanbalf's picture
Update Dockerfile
47bd8dc verified
raw
history blame contribute delete
561 Bytes
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"]