From 0f611e8a441202b89025715b4b55854b9512784a Mon Sep 17 00:00:00 2001 From: Henry Teichmeier Date: Fri, 31 Jul 2026 11:55:13 +0000 Subject: [PATCH] Update Dockerfile --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index fdee0b3..b3f5a68 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,11 +6,11 @@ RUN npm install -g pnpm@10.26.1 # 1. Alle Projektdateien in den Container bringen COPY . . -# 2. Lockfile-Validierung erzwingen und die Linux-Binärdateien explizit nachziehen +# 2. Abhängigkeiten installieren RUN pnpm install --frozen-lockfile -# HIER DER FIX: Zwingt den virtuellen pnpm-Store, das Linux-Musl-Paket physisch bereitzustellen -RUN pnpm add -w @rollup/rollup-linux-x64-musl --save-optional --config.ignore-scripts=false +# HIER DER FIX: Zwingt pnpm, sowohl die Rollup- als auch die LightningCSS-Binärdateien für Alpine bereitzustellen +RUN pnpm add -w @rollup/rollup-linux-x64-musl lightningcss-linux-x64-musl --save-optional --config.ignore-scripts=false ENV BASE_PATH=/ RUN pnpm --filter @workspace/api-server --filter @workspace/toolrate -r --if-present run build @@ -30,8 +30,8 @@ COPY artifacts/toolrate/package.json artifacts/toolrate/ RUN pnpm install --frozen-lockfile --prod -# Auch für den Runner-Stage stellen wir sicher, dass das Paket im Produktiv-Image existiert -RUN pnpm add -w @rollup/rollup-linux-x64-musl --save-optional --prod +# Auch für den Runner-Stage stellen wir sicher, dass beide Pakete im Produktiv-Image existieren +RUN pnpm add -w @rollup/rollup-linux-x64-musl lightningcss-linux-x64-musl --save-optional --prod COPY --from=builder /app/lib/db/dist lib/db/dist COPY --from=builder /app/artifacts/api-server/dist artifacts/api-server/dist