Spaces:
Runtime error
Runtime error
chrisaka commited on
Commit ·
bd2320a
1
Parent(s): 8370faa
fix(deploy): Expose port 7860 natively for Hugging Face Docker routing
Browse files- Dockerfile +4 -4
- app/__pycache__/main.cpython-313.pyc +0 -0
- app/core/__pycache__/auth.cpython-313.pyc +0 -0
- app/core/__pycache__/config.cpython-313.pyc +0 -0
- app/core/__pycache__/email.cpython-313.pyc +0 -0
- app/core/__pycache__/permissions.cpython-313.pyc +0 -0
- app/core/__pycache__/scheduler.cpython-313.pyc +0 -0
- app/core/__pycache__/supabase.cpython-313.pyc +0 -0
- app/models/__pycache__/schemas.cpython-313.pyc +0 -0
- app/routers/__pycache__/audiences.cpython-313.pyc +0 -0
- app/routers/__pycache__/audit.cpython-313.pyc +0 -0
- app/routers/__pycache__/auth.cpython-313.pyc +0 -0
- app/routers/__pycache__/clients.cpython-313.pyc +0 -0
- app/routers/__pycache__/dossiers.cpython-313.pyc +0 -0
- app/routers/__pycache__/espaces.cpython-313.pyc +0 -0
- app/routers/__pycache__/fichiers.cpython-313.pyc +0 -0
- app/routers/__pycache__/flash_cr.cpython-313.pyc +0 -0
- app/routers/__pycache__/paiements.cpython-313.pyc +0 -0
- app/routers/__pycache__/utilisateurs.cpython-313.pyc +0 -0
Dockerfile
CHANGED
|
@@ -24,9 +24,9 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 24 |
# Copie de l'intégralité du code (app, logs, etc)
|
| 25 |
COPY . .
|
| 26 |
|
| 27 |
-
# Définition du port dynamique attendu par la plupart des PaaS (Render, Heroku)
|
| 28 |
-
EXPOSE
|
| 29 |
|
| 30 |
# Démarrage de Gunicorn avec le worker Uvicorn (adapté pour la production)
|
| 31 |
-
# On lie l'adresse et le port (0.0.0.0 au port
|
| 32 |
-
CMD ["gunicorn", "app.main:app", "--workers", "1", "--worker-class", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:
|
|
|
|
| 24 |
# Copie de l'intégralité du code (app, logs, etc)
|
| 25 |
COPY . .
|
| 26 |
|
| 27 |
+
# Définition du port dynamique attendu par la plupart des PaaS (Render, Heroku) ou 7860 pour Hugging Face
|
| 28 |
+
EXPOSE 7860
|
| 29 |
|
| 30 |
# Démarrage de Gunicorn avec le worker Uvicorn (adapté pour la production)
|
| 31 |
+
# On lie l'adresse et le port (0.0.0.0 au port 7860)
|
| 32 |
+
CMD ["gunicorn", "app.main:app", "--workers", "1", "--worker-class", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:7860"]
|
app/__pycache__/main.cpython-313.pyc
CHANGED
|
Binary files a/app/__pycache__/main.cpython-313.pyc and b/app/__pycache__/main.cpython-313.pyc differ
|
|
|
app/core/__pycache__/auth.cpython-313.pyc
CHANGED
|
Binary files a/app/core/__pycache__/auth.cpython-313.pyc and b/app/core/__pycache__/auth.cpython-313.pyc differ
|
|
|
app/core/__pycache__/config.cpython-313.pyc
CHANGED
|
Binary files a/app/core/__pycache__/config.cpython-313.pyc and b/app/core/__pycache__/config.cpython-313.pyc differ
|
|
|
app/core/__pycache__/email.cpython-313.pyc
CHANGED
|
Binary files a/app/core/__pycache__/email.cpython-313.pyc and b/app/core/__pycache__/email.cpython-313.pyc differ
|
|
|
app/core/__pycache__/permissions.cpython-313.pyc
CHANGED
|
Binary files a/app/core/__pycache__/permissions.cpython-313.pyc and b/app/core/__pycache__/permissions.cpython-313.pyc differ
|
|
|
app/core/__pycache__/scheduler.cpython-313.pyc
CHANGED
|
Binary files a/app/core/__pycache__/scheduler.cpython-313.pyc and b/app/core/__pycache__/scheduler.cpython-313.pyc differ
|
|
|
app/core/__pycache__/supabase.cpython-313.pyc
CHANGED
|
Binary files a/app/core/__pycache__/supabase.cpython-313.pyc and b/app/core/__pycache__/supabase.cpython-313.pyc differ
|
|
|
app/models/__pycache__/schemas.cpython-313.pyc
CHANGED
|
Binary files a/app/models/__pycache__/schemas.cpython-313.pyc and b/app/models/__pycache__/schemas.cpython-313.pyc differ
|
|
|
app/routers/__pycache__/audiences.cpython-313.pyc
CHANGED
|
Binary files a/app/routers/__pycache__/audiences.cpython-313.pyc and b/app/routers/__pycache__/audiences.cpython-313.pyc differ
|
|
|
app/routers/__pycache__/audit.cpython-313.pyc
CHANGED
|
Binary files a/app/routers/__pycache__/audit.cpython-313.pyc and b/app/routers/__pycache__/audit.cpython-313.pyc differ
|
|
|
app/routers/__pycache__/auth.cpython-313.pyc
CHANGED
|
Binary files a/app/routers/__pycache__/auth.cpython-313.pyc and b/app/routers/__pycache__/auth.cpython-313.pyc differ
|
|
|
app/routers/__pycache__/clients.cpython-313.pyc
CHANGED
|
Binary files a/app/routers/__pycache__/clients.cpython-313.pyc and b/app/routers/__pycache__/clients.cpython-313.pyc differ
|
|
|
app/routers/__pycache__/dossiers.cpython-313.pyc
CHANGED
|
Binary files a/app/routers/__pycache__/dossiers.cpython-313.pyc and b/app/routers/__pycache__/dossiers.cpython-313.pyc differ
|
|
|
app/routers/__pycache__/espaces.cpython-313.pyc
CHANGED
|
Binary files a/app/routers/__pycache__/espaces.cpython-313.pyc and b/app/routers/__pycache__/espaces.cpython-313.pyc differ
|
|
|
app/routers/__pycache__/fichiers.cpython-313.pyc
CHANGED
|
Binary files a/app/routers/__pycache__/fichiers.cpython-313.pyc and b/app/routers/__pycache__/fichiers.cpython-313.pyc differ
|
|
|
app/routers/__pycache__/flash_cr.cpython-313.pyc
CHANGED
|
Binary files a/app/routers/__pycache__/flash_cr.cpython-313.pyc and b/app/routers/__pycache__/flash_cr.cpython-313.pyc differ
|
|
|
app/routers/__pycache__/paiements.cpython-313.pyc
CHANGED
|
Binary files a/app/routers/__pycache__/paiements.cpython-313.pyc and b/app/routers/__pycache__/paiements.cpython-313.pyc differ
|
|
|
app/routers/__pycache__/utilisateurs.cpython-313.pyc
CHANGED
|
Binary files a/app/routers/__pycache__/utilisateurs.cpython-313.pyc and b/app/routers/__pycache__/utilisateurs.cpython-313.pyc differ
|
|
|