#!/bin/bash set -e # 1. Define and create the directory (just in case) MODEL_DIR="/data/models" mkdir -p $MODEL_DIR chmod 777 $MODEL_DIR # 2. Print status echo "--- ENTRYPOINT STARTED ---" echo "Storage fixed. Handing control to app.py..." # 3. Start the app exec "$@"