distrobox as alternative runner

This commit is contained in:
Dejvino
2026-03-08 16:59:22 +01:00
parent d00cf96ed7
commit a6c8d9c8c6
+9
View File
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
CONTAINER_NAME="party-stage-dev"
# Create the container if it doesn't exist using a Node.js image
distrobox create --image node:lts --name "$CONTAINER_NAME" --yes
# Run the command inside the container
distrobox enter "$CONTAINER_NAME" -- sh -c "npm install && npx vite --host"