feat: publish docker image alongside npm package (#197)

This commit is contained in:
Brandon Keiji
2025-04-28 20:25:19 +00:00
committed by GitHub
parent 304d1f2712
commit 7ad6556623
8 changed files with 127 additions and 54 deletions

View File

@@ -0,0 +1,26 @@
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'