fix(sandbox): set default env var to 'gemini-cli-sandbox' (#620)
This commit is contained in:
parent
8c46108a85
commit
816cc08a8f
|
@ -1,6 +1,7 @@
|
|||
FROM docker.io/library/node:20-slim
|
||||
|
||||
# ENV SANDBOX="gemini-cli-sandbox"
|
||||
ARG SANDBOX_NAME="gemini-cli-sandbox"
|
||||
ENV SANDBOX="$SANDBOX_NAME"
|
||||
|
||||
# install minimal set of packages, then clean up
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
|
|
|
@ -56,7 +56,7 @@ export const Footer: React.FC<FooterProps> = ({
|
|||
>
|
||||
{process.env.SANDBOX && process.env.SANDBOX !== 'sandbox-exec' ? (
|
||||
<Text color="green">
|
||||
{process.env.SANDBOX.replace(/^gemini-(?:code-)?/, '')}
|
||||
{process.env.SANDBOX.replace(/^gemini-(?:cli-)?/, '')}
|
||||
</Text>
|
||||
) : process.env.SANDBOX === 'sandbox-exec' ? (
|
||||
<Text color={Colors.AccentYellow}>
|
||||
|
|
|
@ -26,7 +26,7 @@ fi
|
|||
CMD=$(scripts/sandbox_command.sh)
|
||||
echo "using $CMD for sandboxing"
|
||||
|
||||
IMAGE=gemini-code-sandbox:latest
|
||||
IMAGE=gemini-cli-sandbox:latest
|
||||
DOCKERFILE=Dockerfile
|
||||
|
||||
SKIP_NPM_INSTALL_BUILD=false
|
||||
|
|
Loading…
Reference in New Issue