Files
paperlessmanager/paperless-backend/Dockerfile
T
bjoernpoettkerandClaude Opus 5.5 33457c19c2
Build and Push Multi-Platform Images / build-and-push (push) Successful in 1m22s
chore(docker): Node.js 20 → 24 LTS
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>
2026-10-30 10:00:57 +01:00

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"]