Files
dashboard/sync/Dockerfile
Matthias Hochmeister b54e400c48 fix: add .npmrc to sync service to use public npm registry
The server has an Apple npm proxy that silently drops devDependencies.
Copying the same .npmrc fix used by the frontend (registry=registry.npmjs.org)
resolves the issue.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-01 14:04:02 +01:00

21 lines
554 B
Docker

# Stage 1: build TypeScript
FROM node:20-alpine AS builder
WORKDIR /app
ENV PATH="/app/node_modules/.bin:$PATH"
RUN apk add --no-cache python3 make g++
COPY package*.json .npmrc ./
RUN npm ci --include=dev
COPY tsconfig.json ./
COPY src ./src
RUN npm run build && npm prune --production
# 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"]