This commit is contained in:
+5
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user