RobotHub-Frontend / docker-build.sh
blanchon's picture
Update
3165745
raw
history blame
907 Bytes
#!/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"