Files
jinshen-website/entrypoint.sh
R2m1liA aba3729335
All checks were successful
deploy to server / build-and-deploy (push) Successful in 2m59s
build: doker镜像构建时记录构建时间与gitcommit
- 镜像构建时会向项目目录内的version.json写入构建时间与commit-sha,并在镜像启动时输出日志
- 添加用于获取版本号的server api
2025-11-06 17:45:09 +08:00

10 lines
179 B
Bash

#!/bin/sh
echo "Starting Nuxt App..."
if [ -f "/app/version.json" ]; then
echo "Version info:"
cat /app/version.json
else
echo "⚠️ version.json not found!"
fi
exec "$@"