Fixed files: - competitions-view.tsx: 10 strings (placeholders, labels) - subjects-view.tsx: 11 strings (types, actions, placeholders) - professional-calendar.tsx: 5 strings (event type labels) - illness-reporting-view.tsx: 3 strings (status badges) - student-detail-view.tsx: 4 strings (health form placeholders) - data-table.tsx: 2 strings (search, empty state) - compliance-wizard.tsx: 2 strings (name, state) - settings-view.tsx: 1 string (Skipped) - competence-flower-view.tsx: 1 string (Active) - disciplinary-view.tsx: 1 string (All clear) - district-management-view.tsx: 1 string (No recent activity) - competitions-view.tsx: 1 string (Stock) - ui/pagination.tsx: 3 strings (Previous, Next, More pages) - ui/breadcrumb.tsx: 1 string (More) - ui/carousel.tsx: 2 strings (Previous/Next slide) - ui/sidebar.tsx: 1 string (Sidebar title) Total: 44 hardcoded English strings replaced with German
33 lines
988 B
Docker
Executable File
33 lines
988 B
Docker
Executable File
FROM node:22-alpine AS base
|
|
WORKDIR /app
|
|
|
|
FROM base AS dependencies
|
|
COPY package.json pnpm-lock.yaml* ./
|
|
RUN corepack enable && pnpm install --frozen-lockfile
|
|
|
|
FROM base AS builder
|
|
COPY --from=dependencies /app/node_modules ./node_modules
|
|
COPY . .
|
|
RUN corepack enable && pnpm prisma generate && pnpm build
|
|
|
|
FROM node:22-alpine AS runner
|
|
WORKDIR /app
|
|
ENV NODE_ENV=production
|
|
ENV PORT=3000
|
|
ENV HOSTNAME=0.0.0.0
|
|
|
|
RUN addgroup --system --gid 1001 schulos && adduser --system --uid 1001 schulos
|
|
|
|
COPY --from=builder /app/public ./public
|
|
COPY --from=builder --chown=schulos:schulos /app/.next/standalone ./
|
|
COPY --from=builder --chown=schulos:schulos /app/.next/static ./.next/static
|
|
COPY --from=builder --chown=schulos:schulos /app/prisma ./prisma
|
|
COPY --from=builder --chown=schulos:schulos /app/node_modules/.prisma ./node_modules/.prisma
|
|
|
|
RUN mkdir -p /data/db /data/uploads /data/exports /data/backups && chown -R schulos:schulos /data
|
|
|
|
USER schulos
|
|
EXPOSE 3000
|
|
|
|
CMD ["node", "server.js"]
|