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