From 7004295e1d27af47c1eb283b9cd65c1853cf4748 Mon Sep 17 00:00:00 2001 From: hkfires <10558748+hkfires@users.noreply.github.com> Date: Fri, 9 Jan 2026 11:24:00 +0800 Subject: [PATCH] build(docker): move stats export execution after image build --- docker-build.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker-build.sh b/docker-build.sh index fc846703..944f3e78 100644 --- a/docker-build.sh +++ b/docker-build.sh @@ -152,16 +152,16 @@ case "$choice" in # Build and start the services with a local-only image tag export CLI_PROXY_IMAGE="cli-proxy-api:local" - if [[ "${WITH_USAGE}" == "true" ]]; then - export_stats - fi - echo "Building the Docker image..." docker compose build \ --build-arg VERSION="${VERSION}" \ --build-arg COMMIT="${COMMIT}" \ --build-arg BUILD_DATE="${BUILD_DATE}" + if [[ "${WITH_USAGE}" == "true" ]]; then + export_stats + fi + echo "Starting the services..." docker compose up -d --remove-orphans --pull never