| # Antigravity VS Code Robust Launcher | |
| export HOME=/home/user | |
| export SHELL=/bin/bash | |
| # Ensure we are in the workspace | |
| mkdir -p /home/user/workspace | |
| cd /home/user/workspace | |
| echo "--- STARTING ANTIGRAVITY VS CODE ---" | |
| # We use --without-connection-token for ease of use in private spaces. | |
| # If you want security, add --connection-token your_password | |
| # --disable-chromium-sandbox is the most important flag for Docker. | |
| antigravity serve-web \ | |
| --host 0.0.0.0 \ | |
| --port 7860 \ | |
| --accept-server-license-terms \ | |
| --without-connection-token \ | |
| --disable-chromium-sandbox \ | |
| --disable-gpu \ | |
| --user-data-dir /home/user/.antigravity-server \ | |
| --extensions-dir /home/user/.antigravity-extensions | |
| echo "--- SERVER EXITED ---" | |
| sleep infinity |