mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-05 23:42:03 +00:00
feat: prototype publish sandbox script with npm package (#182)
This commit is contained in:
parent
a5ba681f8d
commit
d051c0fd0f
8 changed files with 96 additions and 9 deletions
27
packages/cli/Dockerfile
Normal file
27
packages/cli/Dockerfile
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
FROM docker.io/library/node:20-slim
|
||||
|
||||
ENV GEMINI_CODE_SANDBOX=docker
|
||||
ENV SANDBOX=sandbox
|
||||
|
||||
# install minimal set of packages, then clean up
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
man-db \
|
||||
curl \
|
||||
dnsutils \
|
||||
less \
|
||||
jq \
|
||||
bc \
|
||||
gh \
|
||||
git \
|
||||
unzip \
|
||||
rsync \
|
||||
ripgrep \
|
||||
procps \
|
||||
psmisc \
|
||||
lsof \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN --mount=type=secret,id=npmrc,dst=/root/.npmrc npm install -g @gemini-code/cli@head --verbose
|
||||
|
||||
ENTRYPOINT 'gemini-code'
|
||||
Loading…
Add table
Add a link
Reference in a new issue