Skip to content

Commit

Permalink
chore: update readme and Dockerfile with pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianAndersen committed Dec 24, 2024
1 parent f99a193 commit 233cb85
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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
Expand All @@ -44,8 +44,8 @@ yarn prod
#### 🧹 Code style, lint and type checking

```shell
yarn check
pnpm check

# automatic fixes
yarn fix
pnpm fix
```

0 comments on commit 233cb85

Please sign in to comment.