Skip to content

Commit 059a5ef

Browse files
author
Tomasz Gągor
committed
feat: properly add multiplatform support
1 parent 338a47a commit 059a5ef

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,19 @@ RUN apk add --no-cache su-exec && \
2525

2626
# Install Gemini CLI
2727
ARG GEMINI_CLI_VERSION="latest"
28+
ARG TARGETPLATFORM
2829
RUN 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-
3542
WORKDIR /home/gemini/workspace
36-
3743
ENTRYPOINT ["/usr/local/sbin/docker-entrypoint.sh", "gemini"]

build.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

2222
images:
2323
gemini-cli:

0 commit comments

Comments
 (0)