#!/bin/bash set -e echo "=== AME Remote Job Manager — Entrypoint ===" # Verify mount points are accessible (mounted by host via docker-compose.yml bind-mounts) echo "Checking mount points..." for mount_point in /watch /output /ame-logs; do if [ -d "$mount_point" ]; then echo "✓ $mount_point is accessible" else echo "⚠ $mount_point not found — ensure SMB share is mounted on host" mkdir -p "$mount_point" fi done echo "Starting Node.js application..." exec node server.js