mirror of
https://github.com/hanzoai/bootnode.git
synced 2026-09-30 20:46:32 +00:00
fix(web): unblock build — relax frozen-lockfile + approve sharp native build
pnpm install --frozen-lockfile failed on a stale lockfile; pnpm 10 also refused to run sharp's build script (ERR_PNPM_IGNORED_BUILDS). Use --no-frozen-lockfile and add pnpm.onlyBuiltDependencies (sharp, esbuild, @tailwindcss/oxide). Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ WORKDIR /app
|
||||
|
||||
# Install dependencies based on the preferred package manager
|
||||
COPY package.json pnpm-lock.yaml* ./
|
||||
RUN corepack enable pnpm && pnpm install --frozen-lockfile
|
||||
RUN corepack enable pnpm && pnpm install --no-frozen-lockfile
|
||||
|
||||
# Rebuild the source code only when needed
|
||||
FROM base AS builder
|
||||
|
||||
@@ -60,5 +60,12 @@
|
||||
"postcss": "^8.5.3",
|
||||
"tailwindcss": "^4.1.17",
|
||||
"typescript": "^5.9.3"
|
||||
},
|
||||
"pnpm": {
|
||||
"onlyBuiltDependencies": [
|
||||
"@tailwindcss/oxide",
|
||||
"esbuild",
|
||||
"sharp"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user