Skip to content
Snippets Groups Projects
docker-entrypoint.sh 645 B
Newer Older
  • Learn to ignore specific revisions
  • # Environment variable to determine whether to start webservice
    export WEBSERVICE=${WEBSERVICE:-false}
    
    if [ "${WEBSERVICE}" = "false" ]; then
    
      # run arguments as command, or bash prompt if no arguments
      exec "${@:-/bin/bash}"
    
      export LOG_BASIC_CONFIG="${LOG_BASIC_CONFIG:-true}"
      export LOG_LEVEL="${LOG_LEVEL:-INFO}"
    
          --log-level "${LOG_LEVEL}" \
    
          --threads 2 \
          --workers 2 \
          --worker-class uvicorn.workers.UvicornWorker \
          --worker-tmp-dir /dev/shm \
          geomagio.api:app