diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index f5df56f..3a999f3 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -114,6 +114,7 @@ jobs: context: . file: ./Dockerfile platforms: ${{ matrix.platform }} + no-cache: true push: true # 使用带架构后缀的临时标签 tags: | diff --git a/Dockerfile b/Dockerfile index 0b844ca..fd4c738 100644 --- a/Dockerfile +++ b/Dockerfile @@ -96,6 +96,7 @@ COPY --from=agent-builder --chown=nodejs:nodejs /app/agent-go/agent-windows-amd6 # 4. 复制后端源码 (不包含 node_modules) COPY --chown=nodejs:nodejs server.js ./ COPY --chown=nodejs:nodejs src ./src +COPY --chown=nodejs:nodejs modules ./modules ENV NODE_ENV=production \ PORT=3000 \ diff --git a/server.js b/server.js index dcf9102..241529f 100644 --- a/server.js +++ b/server.js @@ -20,7 +20,7 @@ $$ | $$ |$$ | _$$ |_ $$ \\__$$ |$$ \\__$$ | __ $$ | $$ |$$ | / $$ | $$ $$/ $$ $$/ / | $$/ $$/ $$/ $$$$$$/ $$$$$$/ $$$$$$/ $$/ \x1b[0m\x1b[33m ->>> Gravity Engineering System v0.1.2 <<<\x1b[0m +>>> Gravity Engineering System v0.1.3 <<<\x1b[0m `); // 导入中间件