Fix Docker build
This commit is contained in:
+12
-5
@@ -10,16 +10,23 @@ ENV NEXT_TELEMETRY_DISABLED=1
|
|||||||
FROM base AS deps
|
FROM base AS deps
|
||||||
RUN apt-get update -y && apt-get install -y openssl && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update -y && apt-get install -y openssl && rm -rf /var/lib/apt/lists/*
|
||||||
COPY package.json package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
# --ignore-scripts: skips the project `postinstall` (`npm rebuild lightningcss
|
# Copy the Prisma schema so the project's `postinstall` (which runs
|
||||||
# && prisma generate`). The Prisma schema is not yet present in this stage;
|
# `prisma generate`) succeeds during install.
|
||||||
# the builder stage runs `prisma generate` after `COPY . .`.
|
COPY prisma ./prisma
|
||||||
RUN npm ci --no-audit --fund=false --ignore-scripts
|
# `npm install` rather than `npm ci`:
|
||||||
|
# 1. `npm ci` strictly validates the lockfile and refuses when sub-tree
|
||||||
|
# resolutions drift (a recurring nuisance because the lockfile is
|
||||||
|
# generated on darwin-arm64 by default).
|
||||||
|
# 2. `npm install` reuses the lockfile when it can but tolerates
|
||||||
|
# platform-specific reshuffles for Linux-only optional deps
|
||||||
|
# (`lightningcss-linux-*-gnu`, `@tailwindcss/oxide-linux-*-gnu`,
|
||||||
|
# `@next/swc-linux-*-gnu`, etc.) that Next.js needs at build time.
|
||||||
|
RUN npm install --no-audit --fund=false
|
||||||
|
|
||||||
FROM base AS builder
|
FROM base AS builder
|
||||||
RUN apt-get update -y && apt-get install -y openssl && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update -y && apt-get install -y openssl && rm -rf /var/lib/apt/lists/*
|
||||||
COPY --from=deps /app/node_modules ./node_modules
|
COPY --from=deps /app/node_modules ./node_modules
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npx prisma generate
|
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM base AS runner
|
FROM base AS runner
|
||||||
|
|||||||
@@ -25,7 +25,6 @@
|
|||||||
"@types/mdx",
|
"@types/mdx",
|
||||||
"eslint-config-next",
|
"eslint-config-next",
|
||||||
"typescript-eslint",
|
"typescript-eslint",
|
||||||
"@storybook/react",
|
|
||||||
"@storybook/nextjs-vite",
|
"@storybook/nextjs-vite",
|
||||||
"@eslint/js",
|
"@eslint/js",
|
||||||
"@next/eslint-plugin-next",
|
"@next/eslint-plugin-next",
|
||||||
|
|||||||
Generated
+4031
-3106
File diff suppressed because it is too large
Load Diff
+3
-1
@@ -68,8 +68,10 @@
|
|||||||
"@playwright/test": "^1.55.0",
|
"@playwright/test": "^1.55.0",
|
||||||
"@storybook/addon-a11y": "^10.2.0",
|
"@storybook/addon-a11y": "^10.2.0",
|
||||||
"@storybook/nextjs": "^10.2.0",
|
"@storybook/nextjs": "^10.2.0",
|
||||||
|
"@storybook/react": "^10.2.0",
|
||||||
"@svgr/webpack": "^8.1.0",
|
"@svgr/webpack": "^8.1.0",
|
||||||
"@tailwindcss/postcss": "^4.1.11",
|
"@tailwindcss/postcss": "^4.1.11",
|
||||||
|
"@testing-library/dom": "^10.4.0",
|
||||||
"@testing-library/jest-dom": "^6.8.0",
|
"@testing-library/jest-dom": "^6.8.0",
|
||||||
"@testing-library/react": "^16.3.0",
|
"@testing-library/react": "^16.3.0",
|
||||||
"@testing-library/user-event": "^14.6.1",
|
"@testing-library/user-event": "^14.6.1",
|
||||||
@@ -82,7 +84,7 @@
|
|||||||
"@vitest/coverage-v8": "^3.2.4",
|
"@vitest/coverage-v8": "^3.2.4",
|
||||||
"eslint": "^9",
|
"eslint": "^9",
|
||||||
"eslint-config-next": "^16.0.0",
|
"eslint-config-next": "^16.0.0",
|
||||||
"eslint-plugin-storybook": "^9.0.7",
|
"eslint-plugin-storybook": "^10.4.1",
|
||||||
"globals": "^17.1.0",
|
"globals": "^17.1.0",
|
||||||
"jest-axe": "^10.0.0",
|
"jest-axe": "^10.0.0",
|
||||||
"jsdom": "^26.1.0",
|
"jsdom": "^26.1.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user