Update Dockerfile
Build & Push Docker Image / build (push) Failing after 1m53s

This commit is contained in:
2026-07-31 11:55:13 +00:00
parent 634e7c633d
commit 0f611e8a44
+5 -5
View File
@@ -6,11 +6,11 @@ RUN npm install -g pnpm@10.26.1
# 1. Alle Projektdateien in den Container bringen # 1. Alle Projektdateien in den Container bringen
COPY . . COPY . .
# 2. Lockfile-Validierung erzwingen und die Linux-Binärdateien explizit nachziehen # 2. Abhängigkeiten installieren
RUN pnpm install --frozen-lockfile RUN pnpm install --frozen-lockfile
# HIER DER FIX: Zwingt den virtuellen pnpm-Store, das Linux-Musl-Paket physisch bereitzustellen # 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 --save-optional --config.ignore-scripts=false RUN pnpm add -w @rollup/rollup-linux-x64-musl lightningcss-linux-x64-musl --save-optional --config.ignore-scripts=false
ENV BASE_PATH=/ ENV BASE_PATH=/
RUN pnpm --filter @workspace/api-server --filter @workspace/toolrate -r --if-present run build 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 RUN pnpm install --frozen-lockfile --prod
# Auch für den Runner-Stage stellen wir sicher, dass das Paket im Produktiv-Image existiert # 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 --save-optional --prod 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/lib/db/dist lib/db/dist
COPY --from=builder /app/artifacts/api-server/dist artifacts/api-server/dist COPY --from=builder /app/artifacts/api-server/dist artifacts/api-server/dist