This commit is contained in:
+3
-4
@@ -9,14 +9,12 @@ COPY . .
|
|||||||
# 2. Abhängigkeiten installieren
|
# 2. Abhängigkeiten installieren
|
||||||
RUN pnpm install --frozen-lockfile
|
RUN pnpm install --frozen-lockfile
|
||||||
|
|
||||||
# Zwingt pnpm, alle nativen Binärdateien für Alpine physisch bereitzustellen
|
# Zwingt pnpm, alle nativen Binärdateien für Alpine physisch bereit zustellen
|
||||||
RUN pnpm add -w @rollup/rollup-linux-x64-musl lightningcss-linux-x64-musl @tailwindcss/oxide-linux-x64-musl --save-optional --config.ignore-scripts=false
|
RUN pnpm add -w @rollup/rollup-linux-x64-musl lightningcss-linux-x64-musl @tailwindcss/oxide-linux-x64-musl --save-optional --config.ignore-scripts=false
|
||||||
|
|
||||||
ENV BASE_PATH=/
|
ENV BASE_PATH=/
|
||||||
ENV PORT=8080
|
ENV PORT=8080
|
||||||
|
|
||||||
# HIER DER FIX: Wir kompilieren das gesamte Monorepo (inklusive lib/db),
|
|
||||||
# damit überall die /dist Ordner für den Runner entstehen.
|
|
||||||
RUN pnpm -r --if-present run build
|
RUN pnpm -r --if-present run build
|
||||||
|
|
||||||
FROM node:24-alpine AS runner
|
FROM node:24-alpine AS runner
|
||||||
@@ -37,7 +35,8 @@ RUN pnpm install --frozen-lockfile --prod
|
|||||||
# Auch für den Runner-Stage stellen wir sicher, dass alle drei Pakete im Produktiv-Image existieren
|
# Auch für den Runner-Stage stellen wir sicher, dass alle drei Pakete im Produktiv-Image existieren
|
||||||
RUN pnpm add -w @rollup/rollup-linux-x64-musl lightningcss-linux-x64-musl @tailwindcss/oxide-linux-x64-musl --save-optional --prod
|
RUN pnpm add -w @rollup/rollup-linux-x64-musl lightningcss-linux-x64-musl @tailwindcss/oxide-linux-x64-musl --save-optional --prod
|
||||||
|
|
||||||
COPY --from=builder /app/lib/db/dist lib/db/dist
|
# HIER DER FIX: Kopiert den gesamten Ordner lib/db (inkl. src/), da es kein dist/ gibt
|
||||||
|
COPY --from=builder /app/lib/db lib/db
|
||||||
COPY --from=builder /app/artifacts/api-server/dist artifacts/api-server/dist
|
COPY --from=builder /app/artifacts/api-server/dist artifacts/api-server/dist
|
||||||
COPY --from=builder /app/artifacts/toolrate/dist artifacts/toolrate/dist
|
COPY --from=builder /app/artifacts/toolrate/dist artifacts/toolrate/dist
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user