From dcf7d8f3930c2f36a0cd53286bda1bd7dab27f9a Mon Sep 17 00:00:00 2001 From: kleap-admin Date: Fri, 16 Jan 2026 13:54:03 +0000 Subject: [PATCH] Update Dockerfile --- Dockerfile | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index bc6c401..a01eb1d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,30 @@ +# Kleap Auto-Generated Dockerfile +# DO NOT use Nixpacks - it causes Docker buildx cache mount deadlocks +# See coolify-deployer.ts for full explanation + FROM node:22-alpine WORKDIR /app -# Copy package files +# Copy package files first (for better Docker layer caching) COPY package*.json ./ -# Install dependencies (no cache mount issues) +# ╔═══════════════════════════════════════════════════════════════════════════╗ +# ║ CRITICAL: NO --mount=type=cache HERE! ║ +# ║ ║ +# ║ Nixpacks generates: RUN --mount=type=cache,id=xxx,target=/root/.npm ... ║ +# ║ This causes DEADLOCK on Coolify/Hetzner Docker buildx. ║ +# ║ ║ +# ║ We use simple RUN without cache mount = reliable builds every time. ║ +# ╚═══════════════════════════════════════════════════════════════════════════╝ RUN npm install --legacy-peer-deps -# Copy source +# Copy source code COPY . . -# Build +# Build the Next.js app RUN npm run build -# Start +# Expose port and start EXPOSE 3000 CMD ["npm", "start"]