# Builder FROM node:20-bookworm AS builder WORKDIR /app COPY package*.json ./ RUN npm uninstall @nuxt/eslint @nuxt/eslint-config @nuxtjs/eslint-config-typescript eslint @typescript-eslint/parser @typescript-eslint/eslint-plugin --legacy-peer-deps || true RUN npm install --legacy-peer-deps COPY . . RUN npm run build # Runtime FROM node:20-slim AS runner WORKDIR /app COPY --from=builder /app/.output ./.output COPY package*.json ./ EXPOSE 3000 CMD ["node", ".output/server/index.mjs"]