From ea5dee00771c6cecf7a4d21cc32a87891a3c4966 Mon Sep 17 00:00:00 2001 From: cuixiaorui Date: Tue, 24 Oct 2023 17:12:46 +0800 Subject: [PATCH] chore(backend): use pnpm replace npm --- apps/backend/Dockerfile | 2 +- apps/backend/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/backend/Dockerfile b/apps/backend/Dockerfile index 4e17980..59c5c4f 100644 --- a/apps/backend/Dockerfile +++ b/apps/backend/Dockerfile @@ -19,4 +19,4 @@ EXPOSE 3000 # 启动应用 -CMD ["npm", "run", "start:prod"] \ No newline at end of file +CMD ["pnpm", "run", "start:prod"] \ No newline at end of file diff --git a/apps/backend/package.json b/apps/backend/package.json index a3452a3..b932872 100644 --- a/apps/backend/package.json +++ b/apps/backend/package.json @@ -8,7 +8,7 @@ "start:dev": "nest start --watch", "start:debug": "nest start --debug --watch", "start:prod": "node dist/main", - "docker:start": "npm run build && docker-compose up --build" + "docker:start": "pnpm run build && docker-compose up --build" }, "dependencies": { "@nestjs/common": "^9.3.5",