From fad71d32fe17e2faa21b698d855c8c127e6c58b5 Mon Sep 17 00:00:00 2001 From: Matthias Hochmeister Date: Sun, 1 Mar 2026 13:46:14 +0100 Subject: [PATCH] fix: install typescript globally and use --ignore-scripts to avoid proxy failures Install tsc globally so it's available on PATH regardless of devDependency resolution issues. Use --ignore-scripts and explicit registry to work around Apple npm proxy interference. Co-Authored-By: Claude Sonnet 4.6 --- sync/Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sync/Dockerfile b/sync/Dockerfile index 28dc51f..f348756 100644 --- a/sync/Dockerfile +++ b/sync/Dockerfile @@ -1,13 +1,14 @@ -# Stage 1: build TypeScript — copy pre-installed node_modules from context +# 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 ./ -COPY node_modules ./node_modules +RUN npm install --registry https://registry.npmjs.org --ignore-scripts COPY tsconfig.json ./ COPY src ./src -RUN ./node_modules/.bin/tsc && npm prune --production +RUN tsc && npm prune --production --registry https://registry.npmjs.org -# Stage 2: runtime with Playwright — copy built artifacts, no npm install +# Stage 2: runtime with Playwright FROM mcr.microsoft.com/playwright:v1.47.0-jammy WORKDIR /app RUN npx playwright install chromium --with-deps