ceo-web/Dockerfile
valentinbvro 91eabf6c5c 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.
2026-07-21 19:33:40 +02:00

15 lines
381 B
Docker

FROM node:22-alpine AS build
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci --legacy-peer-deps --include=dev
COPY . .
RUN npm run build
FROM node:22-alpine
WORKDIR /app
ENV NODE_ENV=production
COPY --from=build /app/public ./public
COPY --from=build /app/.next/standalone ./
COPY --from=build /app/.next/static ./.next/static
EXPOSE 3000
CMD ["node", "server.js"]