diff options
| author | Olcan <[email protected]> | 2025-05-02 14:07:40 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-02 14:07:40 -0700 |
| commit | 69d1c644d9034138ed7418f4450230756e84ad93 (patch) | |
| tree | a5b1eb5ec53a4ad5d219faeddd35bebfd37cb3b0 /scripts/build_sandbox.sh | |
| parent | cc838fad44057a42561215fe3daed2834e6e0442 (diff) | |
custom sandboxing via sandbox.Dockerfile and sandbox.bashrc in project settings (#249)
Diffstat (limited to 'scripts/build_sandbox.sh')
| -rwxr-xr-x | scripts/build_sandbox.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/scripts/build_sandbox.sh b/scripts/build_sandbox.sh index ab4e8fe0..8e6ab5c4 100755 --- a/scripts/build_sandbox.sh +++ b/scripts/build_sandbox.sh @@ -27,17 +27,21 @@ IMAGE=gemini-code-sandbox DOCKERFILE=Dockerfile SKIP_NPM_INSTALL_BUILD=false -while getopts "sd" opt; do +while getopts "sdf:" opt; do case ${opt} in s) SKIP_NPM_INSTALL_BUILD=true ;; d) DOCKERFILE=Dockerfile-dev IMAGE+="-dev" ;; + f) + DOCKERFILE=$OPTARG + ;; \?) - echo "usage: $(basename "$0") [-s] [-d]" + echo "usage: $(basename "$0") [-s] [-d] [-f <dockerfile>]" echo " -s: skip npm install + npm run build" - echo " -d: build dev image (using Dockerfile-dev)" + echo " -d: build dev image (use Dockerfile-dev)" + echo " -f <dockerfile>: use <dockerfile>" exit 1 ;; esac |
