From e15e1aa4c82d7b7f7edc1676518cfe5371f23109 Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Sat, 6 Dec 2025 13:36:14 +0800 Subject: [PATCH] update dockerfile --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f5d4758..3b6e54f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,10 +11,12 @@ WORKDIR /app COPY --exclude=.git --exclude=.gitignore --exclude=Dockerfile --exclude=readme.md --exclude=thewhitesilk_config.json --exclude=thewhitesilk_data . . # 缓存依赖并构建项目 -RUN deno task build +RUN npm run install-dependencies + +RUN npm run build-client # 暴露应用端口(根据你的应用调整端口号) EXPOSE 3601 # 启动服务 -CMD ["deno", "task", "build-and-run-server"] \ No newline at end of file +CMD ["npm", "run", "server"]