This commit is contained in:
刘昊昕
2025-10-17 22:59:41 +08:00
commit ca27603fd2
92 changed files with 7417 additions and 0 deletions

10
entrypoint.sh Normal file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
set -e
# 运行时生成 /usr/share/nginx/html/env.js
cat >/usr/share/nginx/html/env.js <<EOF
window.__ENV__ = { API_URL: "${API_URL}" };
EOF
# 启动 nginx前台
exec nginx -g 'daemon off;'