diff --git a/scripts/start_container.sh b/scripts/start_container.sh index b6416e28..ca03203e 100755 --- a/scripts/start_container.sh +++ b/scripts/start_container.sh @@ -2,6 +2,7 @@ IMAGE=gemini-code-sandbox CLI_DIST=/usr/local/share/npm-global/lib/node_modules/\@gemini-code/cli +WORKDIR=/sandbox/$(basename "$PWD") # use docker if installed, otherwise try to use podman instead if command -v docker &> /dev/null; then @@ -13,4 +14,4 @@ else exit 1 fi -$CMD run -it --rm -v"$PWD:/project" --workdir /project "$IMAGE" node "$CLI_DIST" \ No newline at end of file +$CMD run -it --rm -v"$PWD:$WORKDIR" --workdir "$WORKDIR" "$IMAGE" node "$CLI_DIST" \ No newline at end of file