Skip to content
Snippets Groups Projects
docker-entrypoint.sh 516 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}"
    
          --access-logfile - \
          --bind 0.0.0.0:8000 \
          --threads 2 \
          --workers 2 \
          --worker-class uvicorn.workers.UvicornWorker \
          --worker-tmp-dir /dev/shm \
          geomagio.api:app