mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-09-28 07:36:38 +08:00
fix: pin pnpm to v10 in Dockerfile to avoid v11 build script issues
pnpm v11 blocks build scripts by default and the onlyBuiltDependencies config is difficult to set in Docker build context. Pin to pnpm@10.
This commit is contained in:
@@ -4,7 +4,7 @@ FROM node:22-alpine AS builder
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json pnpm-lock.yaml* ./
|
||||
RUN echo 'onlyBuiltDependencies:' > pnpm-workspace.yaml && echo ' - "@tailwindcss/oxide"' >> pnpm-workspace.yaml && corepack enable pnpm && pnpm install --frozen-lockfile
|
||||
RUN corepack enable pnpm@10 && pnpm install --frozen-lockfile
|
||||
|
||||
COPY . .
|
||||
RUN pnpm run build
|
||||
|
||||
Reference in New Issue
Block a user