fix: Dockerfile cache bust ARG + rm .next + correct data.instance mapping
Three fixes: 1. ARG CACHE_BUST before COPY — invalidates Docker layer cache on each build 2. rm -rf .next before npm run build — clears Turbopack cache 3. (Already committed) const instance = data?.instance — correct API response mapping The instance detail Sheet now opens correctly, showing all sections (Instanz, Dokploy-Resourcen, Codebase-Graph, Ereignisverlauf, Aktionen).
This commit is contained in:
1 parent
9fcb6ebab6
commit
036d177037
1 file changed
+2
@@ -11,6 +11,8 @@ RUN npm install --legacy-peer-deps
|
|||||||
# --- Stage 2: Build ---
|
# --- Stage 2: Build ---
|
||||||
FROM node:24-slim AS builder
|
FROM node:24-slim AS builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
# Cache bust — forces rebuild of all subsequent layers on every push
|
||||||
|
ARG CACHE_BUST=1
|
||||||
COPY --from=deps /app/node_modules ./node_modules
|
COPY --from=deps /app/node_modules ./node_modules
|
||||||
COPY . .
|
COPY . .
|
||||||
ENV NEXT_TELEMETRY_DISABLED=1
|
ENV NEXT_TELEMETRY_DISABLED=1
|
||||||
|
|||||||
Reference in new issue
Block a user