File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed
Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -25,13 +25,19 @@ RUN apk add --no-cache su-exec && \
2525
2626# Install Gemini CLI
2727ARG GEMINI_CLI_VERSION="latest"
28+ ARG TARGETPLATFORM
2829RUN apk add --no-cache nodejs npm && \
30+
31+ if [ "$TARGETPLATFORM" != "linux/amd64" ]; then \
32+ apk add --no-cache python3 py3-pip build-base git; \
33+ fi && \
2934 npm install -g @google/gemini-cli@${GEMINI_CLI_VERSION} && \
3035 rm -rf ~/.npm && \
3136 apk del --no-cache npm && \
37+ if [ "$TARGETPLATFORM" != "linux/amd64" ]; then \
38+ apk del --no-cache python3 py3-pip build-base git; \
39+ fi && \
3240 gemini --version
3341
34-
3542WORKDIR /home/gemini/workspace
36-
3743ENTRYPOINT ["/usr/local/sbin/docker-entrypoint.sh" , "gemini" ]
Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ labels:
1414 1. Updated weekly for security.
1515 2. Optimized for smaller size.
1616
17- # platforms:
18- # - linux/arm/v7
19- # - linux/amd64
20- # - linux/arm64
17+ platforms :
18+ - linux/arm/v7
19+ - linux/amd64
20+ - linux/arm64
2121
2222images :
2323 gemini-cli :
You can’t perform that action at this time.
0 commit comments