square-api / Dockerfile
martper56's picture
Create Dockerfile
fb0329f verified
raw
history blame contribute delete
359 Bytes
# Base image
FROM python:3.9-slim
# Définir le dossier de travail
WORKDIR /app
# Copier les fichiers nécessaires
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
# Exposer le port pour Hugging Face
EXPOSE 7860
# Lancer l'application avec uvicorn
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]