initial project setup with README and ignore
This commit is contained in:
11
docker-entrypoint.sh
Normal file
11
docker-entrypoint.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# Get number of workers from environment or default to 1
|
||||
WORKERS=${UVICORN_WORKERS:-1}
|
||||
|
||||
echo "Starting Route Optimization API with ${WORKERS} worker(s)..."
|
||||
|
||||
# Start uvicorn
|
||||
exec uvicorn app.main:app --host 0.0.0.0 --port 8002 --workers ${WORKERS}
|
||||
|
||||
Reference in New Issue
Block a user