data_generator_API / Dockerfile
LyXoR51
pushing the app
a028193
Raw History Blame Contribute Delete
639 Bytes
# ============================================================
# 🐳 DOCKERFILE - Streaming API (FastAPI)
# Compatible avec Hugging Face Spaces
# ============================================================
FROM python:3.11-slim
# Définir le répertoire de travail
WORKDIR /app
# Copier les fichiers du projet
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Exposer le port utilisé par Uvicorn (important pour Hugging Face)
EXPOSE 7860
# Lancer l'application
# Hugging Face attend que ton app tourne sur le port 7860
CMD ["uvicorn", "streaming_api:app", "--host", "0.0.0.0", "--port", "7860"]