FROM pytorch/pytorch:latest

ENTRYPOINT ["bash", "-c", "\n    set -x\n    echo \"[DEBUG] Starting setup...\"\n    \n            echo \"[DEBUG] Installing curl (if not present)...\"\n            if ! command -v curl &> /dev/null; then\n                apt-get update && apt-get install -y curl \\\n                || (apk update && apk add --no-cache curl) \\\n                || echo '\"'\"'Failed to install curl'\"'\"'\n            fi\n        \n    echo \"[DEBUG] Done installing curl...\"\n    \n    \n            echo \"[DEBUG] Installing nebu (if not present)...\"\n            if ! command -v nebu &> /dev/null; then\n                curl -s https://raw.githubusercontent.com/agentsea/nebulous/main/remote_install.sh | bash \\\n                || echo '\"'\"'Failed to install nebu'\"'\"'\n            fi\n        \n    echo \"[DEBUG] Done installing nebu; checking version...\"\n    nebu --version\n    \n    echo \"[DEBUG] Invoking nebu sync...\"\n    nebu sync --config /nebu/sync.yaml --interval-seconds 5 \\\n        --create-if-missing --watch --background --block-once --config-from-env\n    \n    echo \"[DEBUG] All done with base_command; now your user command: sleep infinity\"\n    sleep infinity\n    \nnebu delete containers 8DZGuacjfrck5CQDsHkXXx"]