Update optional TS copy lines with wildcard in Dockerfile
Some checks failed
Staging Build / build (push) Failing after 2m34s
Some checks failed
Staging Build / build (push) Failing after 2m34s
This commit is contained in:
@@ -31,10 +31,8 @@ COPY --from=builder /app/package*.json ./
|
|||||||
# KORREKTUR: Flexibles Kopieren der Next-Konfiguration (egal ob .js oder .mjs)
|
# KORREKTUR: Flexibles Kopieren der Next-Konfiguration (egal ob .js oder .mjs)
|
||||||
COPY --from=builder /app/next.config.* ./
|
COPY --from=builder /app/next.config.* ./
|
||||||
# Optionale TS-Dateien (nur kopieren, wenn vorhanden, blockiert den Build nicht mehr)
|
# Optionale TS-Dateien (nur kopieren, wenn vorhanden, blockiert den Build nicht mehr)
|
||||||
COPY --from=builder /app/tsconfig.json ./ 2>/dev/null || true
|
COPY --from=builder /app/tsconfig.jso* ./
|
||||||
COPY --from=builder /app/next-env.d.ts ./ 2>/dev/null || true
|
COPY --from=builder /app/next-env.d.t* ./
|
||||||
COPY --from=builder /app/tsconfig.json ./ 2>/dev/null || true
|
|
||||||
COPY --from=builder /app/next-env.d.ts ./ 2>/dev/null || true
|
|
||||||
# Install production dependencies (already installed in builder, but ensure they are present)
|
# Install production dependencies (already installed in builder, but ensure they are present)
|
||||||
RUN npm ci --omit=dev
|
RUN npm ci --omit=dev
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user