mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-07 15:57:53 +08:00
Let admins configure private/intranet Guard endpoints without destination-class blocking, and fix prompt-audit switch layout so thumbs and labels no longer overlap. Co-authored-by: Cursor <cursoragent@cursor.com>
14 lines
414 B
Bash
Executable File
14 lines
414 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# 本地构建镜像的快速脚本,避免在命令行反复输入构建参数。
|
|
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
REPO_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
|
|
|
|
docker build -t sub2api:latest \
|
|
--build-arg GOPROXY=https://goproxy.cn,direct \
|
|
--build-arg GOSUMDB=sum.golang.google.cn \
|
|
-f "${REPO_ROOT}/Dockerfile" \
|
|
"${REPO_ROOT}"
|