use /sandbox/<proj_name> instead of /project as workdir in container (#64)
This commit is contained in:
parent
9d608135e3
commit
c80800a3ee
|
@ -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"
|
||||
$CMD run -it --rm -v"$PWD:$WORKDIR" --workdir "$WORKDIR" "$IMAGE" node "$CLI_DIST"
|
Loading…
Reference in New Issue