hop into sandbox (#186)

This commit is contained in:
Olcan
2025-04-26 21:27:36 -07:00
committed by GitHub
parent 688b2d0da7
commit 7828e813a8
2 changed files with 150 additions and 8 deletions

View File

@@ -24,7 +24,7 @@ CMD=$(scripts/sandbox_command.sh)
echo "using $CMD for sandboxing"
IMAGE=gemini-code-sandbox
DOCKERFILE=${DOCKERFILE:-Dockerfile}
DOCKERFILE=Dockerfile
SKIP_NPM_INSTALL_BUILD=false
while getopts "sd" opt; do
@@ -44,7 +44,7 @@ shift $((OPTIND - 1))
# npm install + npm run build unless skipping via -s option
if [ "$SKIP_NPM_INSTALL_BUILD" = false ]; then
npm install
npm run build
npm run build --workspaces
fi
# if using Dockerfile-dev, then skip rebuild unless REBUILD_SANDBOX is set