Spaces:
Running
Running
File size: 907 Bytes
3165745 |
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 26 27 28 29 30 |
#!/bin/bash
# Build and run the LeRobot Arena Frontend Docker container
set -e
echo "ποΈ Building LeRobot Arena Frontend Docker image..."
# Build the image
docker build -t lerobot-arena-svelte-frontend .
echo "β
Build completed successfully!"
echo "π Starting the container..."
# Run the container
docker run -d \
--name lerobot-arena-svelte-frontend \
-p 3000:3000 \
--restart unless-stopped \
lerobot-arena-svelte-frontend
echo "β
Container started successfully!"
echo "π Frontend is available at: http://localhost:3000"
echo ""
echo "π Useful commands:"
echo " β’ View logs: docker logs -f lerobot-arena-svelte-frontend"
echo " β’ Stop: docker stop lerobot-arena-svelte-frontend"
echo " β’ Remove: docker rm lerobot-arena-svelte-frontend"
echo " β’ Health check: docker inspect --format='{{.State.Health.Status}}' lerobot-arena-svelte-frontend" |