From e564392eb92a330a95e3269e31f910ccca0d72c8 Mon Sep 17 00:00:00 2001 From: d0lwl0b <208416493+d0lwl0b@users.noreply.github.com> Date: Thu, 30 Oct 2025 00:28:39 +0800 Subject: [PATCH] chore: update .dockerignore to exclude lock files --- start.sh | 44 ++++++++++++++++++++++---------------------- web/.dockerignore | 3 --- 2 files changed, 22 insertions(+), 25 deletions(-) diff --git a/start.sh b/start.sh index 383cdede..f4589f96 100755 --- a/start.sh +++ b/start.sh @@ -94,31 +94,31 @@ check_config() { # ------------------------------------------------------------------------ # Build: Frontend (Node.js Based) # ------------------------------------------------------------------------ -build_frontend() { - print_info "检查前端构建环境..." +# build_frontend() { +# print_info "检查前端构建环境..." - if ! command -v node &> /dev/null; then - print_error "Node.js 未安装!请先安装 Node.js" - exit 1 - fi +# if ! command -v node &> /dev/null; then +# print_error "Node.js 未安装!请先安装 Node.js" +# exit 1 +# fi - if ! command -v npm &> /dev/null; then - print_error "npm 未安装!请先安装 npm" - exit 1 - fi +# if ! command -v npm &> /dev/null; then +# print_error "npm 未安装!请先安装 npm" +# exit 1 +# fi - print_info "正在构建前端..." - cd web +# print_info "正在构建前端..." +# cd web - print_info "安装 Node.js 依赖..." - npm install +# print_info "安装 Node.js 依赖..." +# npm install - print_info "构建前端应用..." - npm run build +# print_info "构建前端应用..." +# npm run build - cd .. - print_success "前端构建完成" -} +# cd .. +# print_success "前端构建完成" +# } # ------------------------------------------------------------------------ # Service Management: Start @@ -127,9 +127,9 @@ start() { print_info "正在启动 NOFX AI Trading System..." # Auto-build frontend if missing or forced - if [ ! -d "web/dist" ] || [ "$1" == "--build" ]; then - build_frontend - fi + # if [ ! -d "web/dist" ] || [ "$1" == "--build" ]; then + # build_frontend + # fi # Rebuild images if flag set if [ "$1" == "--build" ]; then diff --git a/web/.dockerignore b/web/.dockerignore index 2d8c3534..651c8af9 100644 --- a/web/.dockerignore +++ b/web/.dockerignore @@ -1,8 +1,5 @@ # Dependencies node_modules/ -package-lock.json -yarn.lock -pnpm-lock.yaml # Build output (will be regenerated) dist/