Files
Jesse EgbosionuandClaude Opus 5.5 f2c0c2716b
CI and Deploy / Build site (push) Successful in 20s
CI and Deploy / Build and push image (push) Successful in 30s
CI and Deploy / Deploy to Kubernetes (push) Failing after 2m33s
ci: silence npm audit, funding and update notices in npm ci
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-24 21:45:13 +02:00

27 lines
674 B
Docker

FROM node:22-slim AS base
ENV NEXT_TELEMETRY_DISABLED=1
WORKDIR /app
# Dependencies
FROM base AS dependencies
COPY package.json package-lock.json ./
RUN npm ci --no-audit --no-fund --no-update-notifier
# Build
FROM base AS build
COPY --from=dependencies /app/node_modules ./node_modules
COPY . .
RUN npm run build
# Run
FROM base AS run
ENV NODE_ENV=production
ENV HOSTNAME=0.0.0.0
ENV PORT=3000
RUN mkdir .next && chown node:node .next
COPY --from=build --chown=node:node /app/public ./public
COPY --from=build --chown=node:node /app/.next/standalone ./
COPY --from=build --chown=node:node /app/.next/static ./.next/static
USER node
EXPOSE 3000
CMD ["node", "server.js"]