change npm to pnpm in dockerfile and readme

main
Ayush Mukherjee 2 years ago
parent 00693e18fb
commit 72232d7c78

@ -4,11 +4,13 @@ WORKDIR "/app"
COPY . . 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 FROM node:18-alpine AS prod

@ -11,7 +11,7 @@ Basic leaderboard api using next js, mariadb and typescript.
## Deployment ## Deployment
- Copy `.env.example` to `.env`, and add relevant information - Copy `.env.example` to `.env`, and add relevant information
- `npm run ci` - `pnpm run i`
- `npm run build` - `pnpm run build`
- `npm prune --production` - `pnpm prune --production`
- `npm start:prod --host 0.0.0.0` - `pnpm start:prod --host 0.0.0.0`

Loading…
Cancel
Save