ci / olares chart · sanity (pull_request) Successful in 5s
ci / app · types + tests + build (pull_request) Successful in 3m54s
release / which version (pull_request) Successful in 1s
release / olares chart · sanity (pull_request) Successful in 3s
release / app (pull_request) Successful in 1m25s
release / tag and release (pull_request) Skipped
Next.js 15 with next-intl (de, en, fr, es; locale per person, no URL prefix), Tailwind v4 tokens for the warm palette with dark mode, a shadcn/ui button, Serwist service worker and PWA manifest with icons. One Postgres pool with withHousehold() setting app.household_id per transaction; the first migration creates households with FORCE ROW LEVEL SECURITY, and a two-household test checks the isolation as the table owner. scripts/migrate.mjs applies db/migrations once each with a checksum and retries until the database is reachable. Olares chart with one deployment (init: chown, migrate from the same image), ClusterIP service, entrance internal until the own sign-in exists, image path fixed in the template and tag from appVersion. scripts/check-chart.sh carries the rules from Rocket; CI runs it, type check, tests against Postgres and the build; release builds lunch-app, tags and attaches the chart. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HUc2nv7rJVU2gp3Bgtha3q
33 lines
961 B
Docker
33 lines
961 B
Docker
# Lunch — ein Abbild für Oberfläche, Server und Migrationen (E-0004).
|
|
FROM node:22-alpine AS deps
|
|
WORKDIR /app
|
|
COPY package.json package-lock.json ./
|
|
RUN npm ci
|
|
|
|
FROM node:22-alpine AS build
|
|
WORKDIR /app
|
|
COPY --from=deps /app/node_modules ./node_modules
|
|
COPY . .
|
|
# Keine Telemetrie, keine Schriften vom CDN: Geist liegt im Paket `geist`.
|
|
ENV NEXT_TELEMETRY_DISABLED=1
|
|
RUN npm run build
|
|
|
|
FROM node:22-alpine AS runtime
|
|
WORKDIR /app
|
|
ENV NODE_ENV=production \
|
|
NEXT_TELEMETRY_DISABLED=1 \
|
|
HOSTNAME=0.0.0.0 \
|
|
PORT=3000
|
|
|
|
COPY --from=build /app/public ./public
|
|
COPY --from=build /app/.next/standalone ./
|
|
COPY --from=build /app/.next/static ./.next/static
|
|
# Für den Vorlauf-Container (olares/templates/deployment.yaml): pg liegt
|
|
# schon im standalone-Baum, weil der Server es benutzt.
|
|
COPY --from=build /app/scripts/migrate.mjs ./scripts/migrate.mjs
|
|
COPY --from=build /app/db/migrations ./db/migrations
|
|
|
|
USER 1000
|
|
EXPOSE 3000
|
|
CMD ["node", "server.js"]
|