Detected error : init_db.py
This commit is contained in:
parent
ce38ee5d98
commit
3e8964070b
2 changed files with 2 additions and 4 deletions
|
|
@ -18,5 +18,4 @@ RUN mkdir -p /app/data && chmod 777 /app/data
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|
||||||
# Lancer l'API et initialiser la DB au démarrage
|
# Lancer l'API et initialiser la DB au démarrage
|
||||||
#CMD ["sh", "-c", "python init_db.py && uvicorn api:app --host 0.0.0.0 --port 8000 --reload"]
|
CMD ["sh", "-c", "uvicorn api:app --host 0.0.0.0 --port 8000"]
|
||||||
CMD ["sh", "-c", "python init_db.py && uvicorn api:app --host 0.0.0.0 --port 8000"]
|
|
||||||
|
|
|
||||||
|
|
@ -8,5 +8,4 @@ services:
|
||||||
- ./logs:/app/logs
|
- ./logs:/app/logs
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command: python init_db.py && uvicorn api:app --host 0.0.0.0 --port 8000
|
|
||||||
Loading…
Reference in a new issue