From 72232d7c78c189a5fff396f334140995c397dcca Mon Sep 17 00:00:00 2001 From: Ayush Mukherjee Date: Tue, 1 Nov 2022 13:19:24 +0530 Subject: [PATCH] change npm to pnpm in dockerfile and readme --- Dockerfile | 8 +++++--- README.md | 8 ++++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 91d7bcd..14f6d3e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,11 +4,13 @@ WORKDIR "/app" COPY . . -RUN npm ci +RUN npm i -g pnpm -RUN npm run build +RUN pnpm i -RUN npm prune --production +RUN pnpm build + +RUN pnpm prune --production FROM node:18-alpine AS prod diff --git a/README.md b/README.md index 4a8e2d1..0a8204e 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Basic leaderboard api using next js, mariadb and typescript. ## Deployment - Copy `.env.example` to `.env`, and add relevant information -- `npm run ci` -- `npm run build` -- `npm prune --production` -- `npm start:prod --host 0.0.0.0` +- `pnpm run i` +- `pnpm run build` +- `pnpm prune --production` +- `pnpm start:prod --host 0.0.0.0`