distrobox as alternative runner
This commit is contained in:
parent
d00cf96ed7
commit
a6c8d9c8c6
9
party-stage/distrobox-serve.sh
Executable file
9
party-stage/distrobox-serve.sh
Executable 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"
|
||||
Loading…
Reference in New Issue
Block a user