Build and Push Multi-Platform Images / build-and-push (push) Successful in 1m22s
Node 20 ist seit April 2026 End-of-Life. Backend- und Frontend-Images laufen jetzt auf node:24-alpine; @types/node im Backend auf ^24 angehoben. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
20 lines
435 B
Docker
20 lines
435 B
Docker
# Backend
|
|
FROM node:24-alpine AS builder
|
|
RUN apk add --no-cache git
|
|
WORKDIR /app
|
|
COPY package*.json ./
|
|
RUN npm ci
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
# Production
|
|
FROM node:24-alpine
|
|
RUN apk add --no-cache ghostscript imagemagick font-liberation fontconfig
|
|
WORKDIR /app
|
|
COPY --from=builder /app/dist ./dist
|
|
COPY --from=builder /app/node_modules ./node_modules
|
|
COPY --from=builder /app/package.json ./
|
|
|
|
EXPOSE 3100
|
|
CMD ["node", "dist/main.js"]
|