-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (28 loc) · 909 Bytes
/
Dockerfile
File metadata and controls
33 lines (28 loc) · 909 Bytes
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
28
29
30
31
32
33
FROM alpine:3.23
# set some defaults
ENV DEBUG=false
VOLUME /tmp /var/cache/apk /var/tmp /root/.cache /root/.npm
# Setup unprivileged user defaults
COPY usr/ /usr/
RUN apk add --no-cache su-exec && \
chmod +x /usr/local/sbin/docker-entrypoint.sh
# Install Gemini CLI
ARG GEMINI_CLI_VERSION="latest"
ARG TARGETPLATFORM
RUN apk add --no-cache \
coreutils \
bash \
nodejs \
npm && \
if [ "$TARGETPLATFORM" != "linux/amd64" ]; then \
apk add --no-cache python3 py3-pip build-base git; \
fi && \
npm install -g @google/gemini-cli@${GEMINI_CLI_VERSION} && \
rm -rf ~/.npm && \
apk del --no-cache npm && \
if [ "$TARGETPLATFORM" != "linux/amd64" ]; then \
apk del --no-cache python3 py3-pip build-base git; \
fi && \
gemini --version
WORKDIR /home/gemini/workspace
ENTRYPOINT ["/usr/local/sbin/docker-entrypoint.sh", "gemini"]