260319:0845 Fix UUID #17
Build and Deploy / deploy (push) Failing after 6m20s

This commit is contained in:
admin
2026-03-19 08:45:47 +07:00
parent 2a2b775bad
commit 06b578ee11
2 changed files with 8 additions and 8 deletions
+1 -5
View File
@@ -36,11 +36,7 @@ jobs:
# 2. Build Backend
echo "🏗️ Building Backend..."
# Enable BuildKit for better caching and parallel builds
DOCKER_BUILDKIT=1 docker build \
--cache-from type=local,src=/tmp/.buildx-cache \
--cache-to type=local,dest=/tmp/.buildx-cache \
-f backend/Dockerfile -t lcbp3-backend:latest .
docker build -f backend/Dockerfile -t lcbp3-backend:latest .
# 3. Build Frontend
echo "🏗️ Building Frontend..."
+7 -3
View File
@@ -49,10 +49,14 @@ RUN cd backend && \
pnpm run build
# Deploy with production deps only (pnpm workspace isolation)
RUN pnpm --filter backend deploy --prod --shamefully-hoist --legacy /app/backend-prod \
&& find /app/backend-prod/node_modules -name "*.md" -delete \
RUN pnpm --filter backend deploy --prod --shamefully-hoist --legacy /app/backend-prod
# Clean up unnecessary files to reduce size
RUN find /app/backend-prod/node_modules -name "*.md" -delete \
&& find /app/backend-prod/node_modules -name "*.txt" -delete \
&& find /app/backend-prod/node_modules -name "LICENSE*" -delete
&& find /app/backend-prod/node_modules -name "LICENSE*" -delete \
&& find /app/backend-prod/node_modules -name "README*" -delete \
&& find /app/backend-prod/node_modules -name "CHANGELOG*" -delete
# =========================
# Stage 3: Production Runtime