fix(dockefile)
This commit is contained in:
@@ -42,17 +42,9 @@ COPY . .
|
||||
|
||||
# Permissions
|
||||
RUN chmod -R 755 /app
|
||||
RUN chmod +x entrypoint.sh
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
# Hot-reload + respect des en-têtes proxy (utile si tu testes derrière Traefik en dev)
|
||||
# Astuce: on exclut uploads/logs du reload pour éviter les restarts inutiles
|
||||
CMD ["uvicorn", "app:app", \
|
||||
"--reload", \
|
||||
"--reload-exclude", "uploads/*", \
|
||||
"--reload-exclude", "logs/*", \
|
||||
"--host", "0.0.0.0", \
|
||||
"--port", "8000", \
|
||||
"--log-level", "debug", \
|
||||
"--proxy-headers", \
|
||||
"--forwarded-allow-ips=*"]
|
||||
# Lancer les migrations puis démarrer l'application
|
||||
CMD ["./entrypoint.sh"]
|
||||
|
||||
Reference in New Issue
Block a user