PDF / entrypoint.sh
BirkhoffLee's picture
feat: 基本上搞定了翻译的页面
90423c7 unverified
raw
history blame contribute delete
385 Bytes
#!/usr/bin/env bash
set -euo pipefail
RAW_USERS="${BASIC_AUTH_USERS:-}"
if [[ -z "${RAW_USERS}" ]]; then
echo "[ERROR] BASIC_AUTH_USERS is required. Use one 'username:password' per line." >&2
exit 1
fi
echo "[INFO] Starting gateway on :7860"
cd / && exec /opt/gateway/bin/uvicorn gateway:app \
--app-dir /src \
--host 0.0.0.0 --port 7860 --workers 1 --log-level info