demo-login / Dockerfile
thibaud frere
update
6330d9b
raw
history blame contribute delete
415 Bytes
FROM python:3.12-slim
WORKDIR /app
# Dépendances backend
RUN pip install --no-cache-dir flask
# Copier le code
COPY backend/ /app/backend/
COPY frontend/ /app/frontend/
# Variables d'environnement
ENV PORT=7860 FLASK_ENV=production PYTHONUNBUFFERED=1
# Exposer le port requis par Spaces
EXPOSE 7860
# Start Flask (serves static frontend and the API)
CMD ["python", "-c", "from backend.app import run; run()"]