upatde: dockerfile init blender

This commit is contained in:
Tom Boullay
2026-04-14 14:06:04 +02:00
parent 2b3d02e489
commit ab9685b6ee
5 changed files with 264 additions and 65 deletions
+11 -2
View File
@@ -1,11 +1,20 @@
#!/bin/sh
set -e
echo "[entrypoint] Starting Asset Bridge 3D..."
echo "[upload-gltf] Starting Upload GLTF..."
# Ensure tmp directory for uploads exists
mkdir -p /tmp/assets
echo "[entrypoint] Ready. Launching application..."
# 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. Models will be pushed without compression."
fi
echo "[upload-gltf] Ready. Launching application..."
exec "$@"