feat: add GHCR Docker image publishing with multi-arch support

Add GitHub Actions workflow to automatically build and publish Docker
images to ghcr.io on releases. Supports amd64 and arm64 architectures.
Pre-built image available at ghcr.io/root-fr/jmap-webmail.
This commit is contained in:
Matthieu MALVACHE
2026-02-21 23:30:44 +01:00
committed by Matthieu MALVACHE
parent a43096485b
commit a932e1a1c7
4 changed files with 71 additions and 1 deletions
+8
View File
@@ -6,6 +6,14 @@ COPY . .
RUN npx next build --webpack
FROM node:24-alpine AS runner
LABEL org.opencontainers.image.title="JMAP Webmail"
LABEL org.opencontainers.image.description="Modern webmail client built with Next.js and the JMAP protocol"
LABEL org.opencontainers.image.source="https://github.com/root-fr/jmap-webmail"
LABEL org.opencontainers.image.url="https://github.com/root-fr/jmap-webmail"
LABEL org.opencontainers.image.licenses="MIT"
LABEL org.opencontainers.image.vendor="root.cloud"
WORKDIR /app
ENV NODE_ENV=production
RUN addgroup --system --gid 1001 nodejs && \