Replace golang api server with python

This commit is contained in:
Eden Kirin
2024-01-10 17:37:48 +01:00
parent 3d3dbd19f0
commit 1027162e39
10 changed files with 43 additions and 208 deletions

9
api-server/app/run.sh Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/sh
# start command with exec to replace execution shell and properly receive signals from docker
# without exec, container can't be gracefully terminated with ctrl+c or docker stop
exec uvicorn \
main:app \
--host 0.0.0.0 \
--port 3000 \
--lifespan off