blob: 1395a547706167403692190c1129d7cad019aa31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
FROM docker.io/library/node:20-slim
ARG CLI_VERSION
ENV SANDBOX=${CLI_VERSION}
# 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@${CLI_VERSION} --verbose
ENTRYPOINT 'gemini-code'
|