Initial commit: DSH Web Manager

This commit is contained in:
2026-10-13 09:34:47 +08:00
commit 85332bbc56
135 changed files with 19712 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
set -Eeuo pipefail
project_dir=$(CDPATH= cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)
version=${1:-}
if [[ -z $version ]]; then
version=$(npm view @deepseek-ai/dsh@latest version --registry=https://registry.npmjs.org)
fi
if [[ ! $version =~ ^[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.-]+)?$ ]]; then
echo 'Expected an exact DSH version, not a dist-tag or arbitrary build argument.' >&2
exit 2
fi
tag="dsh-web:${version}-7"
printf 'Building local image %s (no push)\n' "$tag"
docker build --build-arg "DSH_VERSION=$version" --tag "$tag" "$project_dir/image"
docker image inspect --format '{{.Id}}' "$tag"