VCC / Dockerfile
OUAREDAEK's picture
Upload Dockerfile with huggingface_hub
ac8c06d verified
Raw
History Blame Contribute Delete
513 Bytes
# Image Python officielle
FROM python:3.10-slim
# Empêche Python d'écrire des .pyc et force les logs immédiats
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Répertoire de travail
WORKDIR /app
# Installation des dépendances
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copier le reste de l'application
COPY . .
# Port utilisé par Hugging Face Spaces
EXPOSE 7860
# Lancement de l'application Flask avec Gunicorn
CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]