feat: add local Docker build script and update compose configuration

- Introduced a new script `docker-build-local.sh` to build a local Docker image and start services using Docker Compose.
- Updated `docker-compose.yml` to allow dynamic pull policy configuration via the `CLI_PROXY_PULL_POLICY` environment variable.
- Modified `Dockerfile` to support build arguments for Go module proxy settings during the `go mod download` step.
This commit is contained in:
songyu
2026-04-30 14:01:56 +08:00
parent 243c582159
commit 05ecfb6241
3 changed files with 57 additions and 2 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
services:
cli-proxy-api:
image: ${CLI_PROXY_IMAGE:-eceasy/cli-proxy-api:latest}
pull_policy: always
pull_policy: ${CLI_PROXY_PULL_POLICY:-always}
build:
context: .
dockerfile: Dockerfile