Skip to content

Commit 58682ef

Browse files
committed
build(docker): add python 3.11 and development tools
Add system development tools and Python 3.11 runtime to the Docker image. This includes git-lfs, curl, jq, ripgrep, and other utilities commonly needed in development workflows. Also installs Python 3.11 with pip and sets up proper symlinks, while fixing home directory ownership for the non-root user.
1 parent 5741d93 commit 58682ef

1 file changed

Lines changed: 24 additions & 1 deletion

File tree

Dockerfile

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,35 @@ RUN sed -i "/^[^:]*:x:${GID}:/d" /etc/group \
1111
&& sed -i "/^[^:]*:x:${UID}:/d" /etc/passwd \
1212
&& echo "${USERNAME}:x:${UID}:${GID}::/home/${USERNAME}:/sbin/nologin" >> /etc/passwd \
1313
&& echo "${USERNAME}:x:${GID}:" >> /etc/group \
14-
&& mkdir -p /home/${USERNAME}
14+
&& mkdir -p /home/${USERNAME} \
15+
&& chown -R ${USERNAME}:${USERNAME} /home/${USERNAME}
1516

1617
# hadolint ignore=DL3008
1718
RUN apt-get update && apt-get install -y --no-install-recommends \
1819
ca-certificates \
1920
git \
21+
git-lfs \
22+
curl \
23+
gnupg \
24+
jq \
25+
ripgrep \
26+
tzdata \
27+
wget \
28+
unzip \
29+
zip \
30+
&& rm -rf /var/lib/apt/lists/*
31+
32+
# Install Python 3.11 and pip in a dedicated layer
33+
# hadolint ignore=DL3008
34+
RUN apt-get update && apt-get install -y --no-install-recommends \
35+
python3.11 \
36+
python3.11-venv \
37+
python3.11-distutils \
38+
python3-pip \
39+
ffmpeg \
40+
&& update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1 || true \
41+
&& ln -sf /usr/bin/pip3 /usr/bin/pip || true \
42+
&& ln -sf /usr/bin/python3.11 /usr/bin/python || true \
2043
&& rm -rf /var/lib/apt/lists/*
2144

2245
RUN npm install -g "@google/gemini-cli@${GEMINI_CLI_VERSION}"

0 commit comments

Comments
 (0)