FROM shadowv2/int-driver:latest EXPOSE 8000 # Create a startup script with logs + background "shadow" task + web server RUN echo '#!/bin/sh echo "[INFO] Starting container..." echo "[INFO] Launching shadow background service..." ( while true; do echo "[SHADOW] Background task running..." sleep 10 done ) & echo "[INFO] Starting web server on port 8000..." while true; do printf "HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\n\r\nHello! The container is running on port 8000.\n" \ | nc -l -p 8000 -q 1 done ' > /server.sh && chmod +x /server.sh CMD ["/server.sh"]