Files
upload-gltf/docker-entrypoint.sh
T
2026-05-12 23:48:47 +02:00

21 lines
586 B
Bash

#!/bin/sh
set -e
echo "[upload-gltf] Starting Upload GLTF..."
# Ensure tmp directory for uploads exists
mkdir -p /tmp/assets
# Check if Blender is available for Draco compression
if command -v blender > /dev/null 2>&1; then
BLENDER_VERSION=$(blender --version 2>/dev/null | head -n 1)
echo "[upload-gltf] Blender found: $BLENDER_VERSION"
echo "[upload-gltf] Draco compression is enabled."
else
echo "[upload-gltf] WARNING: Blender not found. GLB Draco compression will fall back to separate GLTF delivery."
fi
echo "[upload-gltf] Ready. Launching application..."
exec "$@"