diff --git a/Dockerfile b/Dockerfile index b7f39d0..d7bcb92 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,15 @@ FROM node:18-alpine AS base +RUN npm install -g pnpm +WORKDIR /app + # Install dependencies only when needed FROM base AS deps # Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. RUN apk add --no-cache libc6-compat -WORKDIR /app -COPY package.json yarn.lock ./ -RUN yarn install --frozen-lockfile + +COPY package.json pnpm-lock.yaml ./ +RUN pnpm install # Rebuild the source code only when needed FROM base AS builder @@ -20,7 +23,7 @@ COPY . . # ENV NEXT_TELEMETRY_DISABLED 1 ENV BUILD_STANDALONE true -RUN yarn build +RUN pnpm build # If using npm comment out above and use below instead # RUN npm run build diff --git a/README.md b/README.md index 883e882..120a02b 100644 --- a/README.md +++ b/README.md @@ -9,9 +9,9 @@ Web client for [`rezervo`](https://github.com/mathiazom/rezervo), including book #### ๐Ÿง‘โ€๐Ÿ”ง Setup -1. Install dependencies using Yarn +1. Install dependencies using pnpm ```shell - yarn install + pnpm install ``` 2. Define your own `.env.local` from [`.env.local.example`](.env.local.example) @@ -23,14 +23,14 @@ Web client for [`rezervo`](https://github.com/mathiazom/rezervo), including book 3. Setup and start the [rezervo](https://github.com/mathiazom/rezervo) backend -#### ๐Ÿงถ Run with Yarn +#### ๐Ÿ“ฆ Run with pnpm ```shell -yarn dev +pnpm dev # or -yarn prod +pnpm prod ``` #### ๐Ÿ‹ Run with Docker @@ -44,8 +44,8 @@ yarn prod #### ๐Ÿงน Code style, lint and type checking ```shell -yarn check +pnpm check # automatic fixes -yarn fix +pnpm fix ```