P0 fixes: - ModelError.Is(): use exact matching instead of substring contains() - shouldClearStickySession: add context param for cancellation/tracing P1 fixes: - TODO stubs: return 501 Not Implemented errors - validateInstanceSignature: deduplicate to shared validateCodeSignature() - Error messages: standardize to English only - http.go: remove pseudo if-else with duplicate branches
14 lines
414 B
Bash
14 lines
414 B
Bash
#!/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}"
|