refactor: clean upload pipeline and restore draco delivery

This commit is contained in:
Tom Boullay
2026-04-29 16:29:32 +02:00
parent 097b8f6486
commit 498765db61
32 changed files with 769 additions and 215 deletions
+7 -3
View File
@@ -1,6 +1,6 @@
# =============================================================================
# Upload GLTF — Dockerfile for Coolify
# Node 20 Debian · Multi-stage build
# Node 20 Debian · Blender (headless) · Multi-stage build
# =============================================================================
# --- Stage 1: Dependencies ---------------------------------------------------
@@ -28,10 +28,11 @@ RUN npm run build
FROM node:20-slim AS runner
LABEL maintainer="La Fabrik Durable"
LABEL description="Secure GLTF upload interface with texture compression and GitHub push"
LABEL description="Secure GLTF upload interface with Draco compression and GitHub push"
# Install runtime helpers
# Install Blender (headless) + runtime helpers
RUN apt-get update && apt-get install -y --no-install-recommends \
blender \
tini \
curl \
&& rm -rf /var/lib/apt/lists/*
@@ -48,6 +49,9 @@ COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/.next/static ./.next/static
COPY --from=builder /app/public ./public
# Copy the Blender compression script
COPY --from=builder /app/scripts ./scripts
# Ensure tmp dir for uploads exists
RUN mkdir -p /tmp/assets