Skip to content

Commit 076eb7e

Browse files
committed
pnpm deps
1 parent 749a33a commit 076eb7e

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ jobs:
3434
- name: Set up Node
3535
uses: actions/setup-node@v4
3636
with:
37-
node-version: '22.x'
38-
cache: 'pnpm'
37+
node-version: '22.13.1'
38+
cache: 'pnpm-deps-22.13.1'
3939
cache-dependency-path: ./frontend/web/pnpm-lock.yaml
4040

4141
- name: Install dependencies

frontend/web/Dockerfile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,14 @@ FROM node:lts-alpine AS base
77
FROM base AS deps
88
WORKDIR /app
99
COPY package.json pnpm-lock.yaml ./
10-
RUN corepack enable && \
11-
corepack prepare [email protected] --activate && \
12-
pnpm install --frozen-lockfile
10+
RUN corepack enable pnpm && pnpm install --frozen-lockfile
1311

1412
# Stage 2: Build the application
1513
FROM base AS builder
1614
WORKDIR /app
1715
COPY --from=deps /app/node_modules ./node_modules
1816
COPY . .
19-
RUN corepack enable && \
20-
corepack prepare [email protected] --activate && \
21-
pnpm run build
17+
RUN corepack enable pnpm && pnpm install --frozen-lockfile
2218

2319
# Stage 3: Production server
2420
FROM base AS runner

0 commit comments

Comments
 (0)