Spaces:
Paused
Paused
File size: 598 Bytes
2345f84 1a032b0 2345f84 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
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"] |