fix(docker): Windows entrypoint CRLF and admin invite link VITE_PLAYER_URL

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-15 16:16:01 +08:00
parent afb5c5437e
commit bb868e0ea5
7 changed files with 243 additions and 8 deletions

View File

@@ -12,6 +12,7 @@
| 文件 | 适用环境 |
|------|----------|
| `docs/docker/build-and-export-images.bat` | WindowsCMD可双击 |
| `docs/docker/build-and-export-images.ps1` | WindowsPowerShell |
| `docs/docker/build-and-export-images.sh` | Linux / macOS / Git Bash |
@@ -40,7 +41,13 @@
### Windows
在项目根目录打开 PowerShell
**推荐CMD / 双击):** 在项目根目录打开命令提示符,或直接双击 `docs\docker\build-and-export-images.bat`
```bat
docs\docker\build-and-export-images.bat
```
PowerShell 也可用:
```powershell
.\docs\docker\build-and-export-images.ps1
@@ -57,16 +64,20 @@ chmod +x docs/docker/build-and-export-images.sh
### 可选参数
| PowerShell | Bash | 说明 |
|------------|------|------|
| `-Tag v1.2.3` | `--tag v1.2.3` | 指定镜像 tag未指定时默认当前 Git 短提交号 |
| BAT / PowerShell | Bash | 说明 |
|----------------|------|------|
| `--tag v1.2.3` / `-Tag v1.2.3` | `--tag v1.2.3` | 指定镜像 tag未指定时默认当前 Git 短提交号 |
| (默认) | (默认) | `--no-cache` 全量构建,适合发版 |
| `-UseCache` | `--use-cache` | 使用 Docker 缓存,构建更快 |
| `-ExportOnly` | `--export-only` | 跳过构建,仅导出已有指定 tag 镜像 |
| `-Output my.tar` | `--output my.tar` | 自定义导出文件名 |
| `--use-cache` / `-UseCache` | `--use-cache` | 使用 Docker 缓存,构建更快 |
| `--export-only` / `-ExportOnly` | `--export-only` | 跳过构建,仅导出已有指定 tag 镜像 |
| `--output my.tar` / `-Output my.tar` | `--output my.tar` | 自定义导出文件名 |
示例:仅重新导出已有镜像
```bat
docs\docker\build-and-export-images.bat --export-only
```
```powershell
.\docs\docker\build-and-export-images.ps1 -ExportOnly
```
@@ -197,6 +208,7 @@ thebet365/
├── Docker部署指南.md
└── docker/
├── 镜像构建与导出.md # 本文档
├── build-and-export-images.bat
├── build-and-export-images.ps1
└── build-and-export-images.sh
```