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 . .
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

@ -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`

Loading…
Cancel
Save