distrobox as alternative runner
This commit is contained in:
Executable
+9
@@ -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"
|
||||||
Reference in New Issue
Block a user