add now features

This commit is contained in:
Matthias Hochmeister
2026-03-01 12:11:39 +01:00
parent e5986b5a8b
commit 2e08eef04e

View File

@@ -1,14 +1,18 @@
FROM mcr.microsoft.com/playwright:v1.47.0-jammy
# Stage 1: build TypeScript
FROM node:20-slim AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci --include=dev
COPY tsconfig.json ./
COPY src ./src
RUN npm run build
# Install Chromium for Playwright
# Stage 2: runtime with Playwright
FROM mcr.microsoft.com/playwright:v1.47.0-jammy
WORKDIR /app
COPY package*.json ./
RUN npm ci --omit=dev
RUN npx playwright install chromium --with-deps
COPY . .
RUN npm run build && npm prune --production
COPY --from=builder /app/dist ./dist
CMD ["node", "dist/index.js"]