Add empty frontend/public/ for Next.js standalone Docker build
This commit is contained in:
parent
93c5f3f4a9
commit
09b9f18d3f
2 changed files with 4 additions and 3 deletions
|
|
@ -1,9 +1,10 @@
|
|||
FROM node:20-alpine AS deps
|
||||
WORKDIR /app
|
||||
COPY package.json package-lock.json* ./
|
||||
# --legacy-peer-deps allows install to succeed despite peer dep mismatches
|
||||
# (Tailwind 4 alpha + React 19 peer deps tend to be strict).
|
||||
RUN npm ci --legacy-peer-deps || npm install --legacy-peer-deps
|
||||
# --legacy-peer-deps bypasses peer dep mismatches (Tailwind 4 alpha + React 19).
|
||||
# We use `npm install` instead of `npm ci` because we don't commit package-lock.json yet.
|
||||
# Once `npm install` runs locally and a lockfile is committed, switch back to `npm ci`.
|
||||
RUN npm install --legacy-peer-deps --no-audit --no-fund
|
||||
|
||||
FROM node:20-alpine AS builder
|
||||
WORKDIR /app
|
||||
|
|
|
|||
0
frontend/public/.gitkeep
Normal file
0
frontend/public/.gitkeep
Normal file
Loading…
Add table
Reference in a new issue