Files
dashboard/sync/Dockerfile
Matthias Hochmeister acd1506df8 fix: remove --ignore-scripts from npm install in sync builder
--ignore-scripts prevented @types/* packages from being installed,
causing tsc to fail on missing type definitions.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-01 13:48:32 +01:00

20 lines
607 B
Docker

# Stage 1: build TypeScript
FROM node:20-slim AS builder
WORKDIR /app
RUN npm install -g typescript --registry https://registry.npmjs.org
COPY package.json package-lock.json ./
RUN npm install --registry https://registry.npmjs.org
COPY tsconfig.json ./
COPY src ./src
RUN tsc && npm prune --production --registry https://registry.npmjs.org
# Stage 2: runtime with Playwright
FROM mcr.microsoft.com/playwright:v1.47.0-jammy
WORKDIR /app
RUN npx playwright install chromium --with-deps
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/dist ./dist
CMD ["node", "dist/index.js"]