Skip to content

Commit 50d11ff

Browse files
committed
Fix Dockerfile for pnpm workspace build
1 parent 14e1fb4 commit 50d11ff

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
# Stage 1: Build
22
FROM node:20-alpine AS builder
33
WORKDIR /app
4-
COPY .nvmrc package.json pnpm-lock.yaml ./
4+
COPY .nvmrc package.json pnpm-lock.yaml pnpm-workspace.yaml ./
5+
COPY homepage/ ./homepage/
56
RUN npm install -g pnpm@9.14.4
67
RUN pnpm install --frozen-lockfile
7-
COPY homepage/ ./homepage/
8-
WORKDIR /app/homepage
9-
RUN pnpm build
8+
RUN pnpm --filter homepage build
109

1110
# Stage 2: Serve
1211
FROM nginx:alpine

0 commit comments

Comments
 (0)