Files
topiam/build-openapi.sh
cuijiawang 6b24dca73a mod
2026-09-22 17:57:49 +08:00

19 lines
438 B
Bash
Executable File

#!/usr/bin/env bash
# 构建 OpenAPI 镜像
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
VERSION="${1:-1.1.0-dev}"
REGISTRY="${2:-localhost}"
echo "🔨 构建 OpenAPI 镜像: ${REGISTRY}/topiam-openapi:${VERSION}"
cd "$SCRIPT_DIR"
docker build \
--build-arg BUILDKIT_INLINE_CACHE=1 \
-t ${REGISTRY}/topiam-openapi:${VERSION} \
-f eiam-openapi/Dockerfile \
.
echo "✅ OpenAPI 镜像构建完成"