Fix Docker build #57
Reference in New Issue
Block a user
Delete Branch "adilallo/FixDockerBuild"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fix Docker build: regenerate lockfile on Linux, upgrade Storybook lint plugin
The first release attempt failed:
npm ciinsidenode:20-bookworm-slimrejected the lockfile because (a) it was generated on darwin-arm64 and
only contained darwin native binaries, and (b)
eslint-plugin-storybook@9peers
storybook@^9while we runstorybook@10.platform-specific natives (lightningcss-linux--gnu, @tailwindcss/oxide-
linux--gnu, @next/swc-linux-*-gnu, etc.) land in the lockfile.
new transitive hoist depths break top-level imports otherwise.
npm ci --ignore-scriptstonpm install. The lockfile records sub-tree resolutions inconsistentlybetween npm 10/11 and darwin/linux;
npm installis still bounded bythe lockfile but tolerates the platform-specific reshuffles Next.js
needs at build time.
and the explicit
npx prisma generatestep in the builder stage isno longer needed.
Verified: docker build, tsc, storybook:build, knip, vitest (1238 tests).