fix: apply Dockerfile devDependencies fix to ceo-web
Same class of bug as ceo-api/ceo-worker: plain npm install skips devDependencies (typescript, tailwindcss, postcss) when NODE_ENV=production is visible at build time, which next build needs. Switched to npm ci --include=dev.
This commit is contained in:
parent
df897d4c15
commit
91eabf6c5c
3 changed files with 2716 additions and 2 deletions
5
.dockerignore
Normal file
5
.dockerignore
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
node_modules
|
||||
.next
|
||||
.git
|
||||
.env
|
||||
*.log
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
FROM node:22-alpine AS build
|
||||
WORKDIR /app
|
||||
COPY package.json ./
|
||||
RUN npm install
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci --legacy-peer-deps --include=dev
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
|
|
|
|||
2709
package-lock.json
generated
Normal file
2709
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue