mirror of
https://github.com/root-fr/jmap-webmail.git
synced 2026-09-24 00:01:14 +00:00
Contacts: - Contact groups/lists with JMAP members map and composer expansion - vCard import/export with RFC 6350 parser and duplicate detection - Bulk operations (multi-select, delete, group add, export) Search: - Advanced search panel with JMAP filter fields - Search chips for active filters visualization - Debounced inputs with AbortController deduplication Vacation: - JMAP VacationResponse singleton management - Settings tab with date range and message configuration - Sidebar indicator when vacation responder is active Auth: - TOTP 2FA support with Stalwart-compatible password$totp format Infrastructure: - Docker multi-stage build with standalone Next.js output - Structured server-side logger with text/JSON format - CSP Report-Only and security headers via proxy middleware - Layout refactoring (HTML structure in root layout) - Playwright E2E framework setup Testing: 450+ tests (identity, contacts, vCard, threads, headers, components) i18n: All new strings added to all 8 locales
21 lines
554 B
Docker
21 lines
554 B
Docker
FROM node:24-alpine AS builder
|
|
WORKDIR /app
|
|
COPY package.json package-lock.json ./
|
|
RUN npm ci
|
|
COPY . .
|
|
RUN npx next build --webpack
|
|
|
|
FROM node:24-alpine AS runner
|
|
WORKDIR /app
|
|
ENV NODE_ENV=production
|
|
RUN addgroup --system --gid 1001 nodejs && \
|
|
adduser --system --uid 1001 nextjs
|
|
COPY --from=builder /app/public ./public
|
|
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
|
|
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
|
|
USER nextjs
|
|
EXPOSE 3000
|
|
ENV PORT=3000
|
|
ENV HOSTNAME="0.0.0.0"
|
|
CMD ["node", "server.js"]
|