refactor: clean upload pipeline and restore draco delivery
This commit is contained in:
+7
-3
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user