update start sh to work with environemtns and update dockerfile to use it to start all needed services

This commit is contained in:
Viktor Barzin 2025-06-23 19:01:31 +00:00
parent 5610f1d868
commit 7cea586f41
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863
2 changed files with 31 additions and 33 deletions

View file

@ -41,5 +41,6 @@ EXPOSE 8000
# Set the entry point (adjust to your CLI's entry point)
# ENTRYPOINT ["python", "/app/main.py"]
# ENTRYPOINT ["/app/runall.sh"]
CMD ["/bin/bash" ,"-c" ,"alembic upgrade head && uvicorn api.app:app --host 0.0.0.0 --port 8000"]
# CMD ["/bin/bash" ,"-c" ,"alembic upgrade head && uvicorn api.app:app --host 0.0.0.0 --port 8000"]
# ENTRYPOINT ["uvicorn", "api.app:app", "--host", "0.0.0.0", "--port", "8000"]
CMD ["./start.sh"]