2022-09-07 18:55:52 -03:00

12 lines
355 B
Bash
Executable File

#!/bin/bash
# This script is used to run the application
# It is used by the Dockerfile
# get number of cores
CORES=$(grep -c ^processor /proc/cpuinfo)
# Start the application
uvicorn main:app --host="$UVICORN_HOST" --port="$UVICORN_PORT" \
--workers="$CORES" --log-level="$UVICORN_LOG_LEVEL" --server-header \
--proxy-headers --forwarded-allow-ips="*"