Skip to content

Commit 1217225

Browse files
committed
chore(docker): disable slow dev tool installs
Comment out non-essential CLI and shell tooling installs to reduce Docker build time during this phase.
1 parent 37d26a2 commit 1217225

1 file changed

Lines changed: 33 additions & 23 deletions

File tree

packages/core/src/docker/Dockerfile

Lines changed: 33 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,17 @@ ENV PATH="/home/opencode/.local/bin:${PATH}"
187187
# Shell Setup: Zsh + Oh My Zsh + Starship
188188
# -----------------------------------------------------------------------------
189189
# Oh My Zsh - self-managing installer, trusted to handle versions
190-
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
190+
# Disabled temporarily to reduce Docker build time.
191+
# RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
191192

192193
# Starship prompt - self-managing installer, trusted to handle versions
193-
RUN curl -sS https://starship.rs/install.sh | sh -s -- --yes --bin-dir /home/opencode/.local/bin
194+
# Disabled temporarily to reduce Docker build time.
195+
# RUN curl -sS https://starship.rs/install.sh | sh -s -- --yes --bin-dir /home/opencode/.local/bin
194196

195197
# Configure zsh with starship
196-
RUN echo 'eval "$(starship init zsh)"' >> /home/opencode/.zshrc \
197-
&& echo 'export PATH="/home/opencode/.local/bin:$PATH"' >> /home/opencode/.zshrc
198+
# Disabled temporarily to reduce Docker build time.
199+
# RUN echo 'eval "$(starship init zsh)"' >> /home/opencode/.zshrc \
200+
# && echo 'export PATH="/home/opencode/.local/bin:$PATH"' >> /home/opencode/.zshrc
198201

199202
# -----------------------------------------------------------------------------
200203
# mise: Universal Version Manager
@@ -265,39 +268,46 @@ RUN . /home/opencode/.cargo/env \
265268
&& cargo install --locked ripgrep@15.1.0 eza@0.23.4
266269

267270
# lazygit v0.58.1 (2026-01-12) - terminal UI for git
268-
RUN eval "$(/home/opencode/.local/bin/mise activate bash)" \
269-
&& go install github.com/jesseduffield/lazygit@v0.58.1
271+
# Disabled temporarily to reduce Docker build time.
272+
# RUN eval "$(/home/opencode/.local/bin/mise activate bash)" \
273+
# && go install github.com/jesseduffield/lazygit@v0.58.1
270274

271275
# -----------------------------------------------------------------------------
272276
# Additional Development Tools
273277
# -----------------------------------------------------------------------------
274278
# fzf v0.67.0 (2025-11-16) - fuzzy finder
275-
RUN git clone --branch v0.67.0 --depth 1 https://github.com/junegunn/fzf.git /home/opencode/.fzf \
276-
&& /home/opencode/.fzf/install --all --no-bash --no-fish
279+
# Disabled temporarily to reduce Docker build time.
280+
# RUN git clone --branch v0.67.0 --depth 1 https://github.com/junegunn/fzf.git /home/opencode/.fzf \
281+
# && /home/opencode/.fzf/install --all --no-bash --no-fish
277282

278283
# yq v4.50.1 (2025-12-14) - YAML processor
279-
RUN curl -sL https://github.com/mikefarah/yq/releases/download/v4.50.1/yq_linux_$(dpkg --print-architecture) -o /home/opencode/.local/bin/yq \
280-
&& chmod +x /home/opencode/.local/bin/yq
284+
# Disabled temporarily to reduce Docker build time.
285+
# RUN curl -sL https://github.com/mikefarah/yq/releases/download/v4.50.1/yq_linux_$(dpkg --print-architecture) -o /home/opencode/.local/bin/yq \
286+
# && chmod +x /home/opencode/.local/bin/yq
281287

282288
# Install direnv (2026-01-22)
283-
USER root
284-
RUN apt-get update && apt-get install -y --no-install-recommends direnv=2.32.* \
285-
&& rm -rf /var/lib/apt/lists/*
286-
USER opencode
287-
RUN echo 'eval "$(direnv hook zsh)"' >> /home/opencode/.zshrc
289+
# Disabled temporarily to reduce Docker build time.
290+
# USER root
291+
# RUN apt-get update && apt-get install -y --no-install-recommends direnv=2.32.* \
292+
# && rm -rf /var/lib/apt/lists/*
293+
# USER opencode
294+
# RUN echo 'eval "$(direnv hook zsh)"' >> /home/opencode/.zshrc
288295

289296
# Install HTTPie
290-
RUN eval "$(/home/opencode/.local/bin/mise activate bash)" \
291-
&& pipx install httpie
297+
# Disabled temporarily to reduce Docker build time.
298+
# RUN eval "$(/home/opencode/.local/bin/mise activate bash)" \
299+
# && pipx install httpie
292300

293301
# Install shellcheck (2026-01-22)
294-
USER root
295-
RUN apt-get update && apt-get install -y --no-install-recommends shellcheck=0.9.* \
296-
&& rm -rf /var/lib/apt/lists/*
297-
USER opencode
302+
# Disabled temporarily to reduce Docker build time.
303+
# USER root
304+
# RUN apt-get update && apt-get install -y --no-install-recommends shellcheck=0.9.* \
305+
# && rm -rf /var/lib/apt/lists/*
306+
# USER opencode
298307
# shfmt v3.12.0 (2025-07-06) - shell formatter
299-
RUN eval "$(/home/opencode/.local/bin/mise activate bash)" \
300-
&& go install mvdan.cc/sh/v3/cmd/shfmt@v3.12.0
308+
# Disabled temporarily to reduce Docker build time.
309+
# RUN eval "$(/home/opencode/.local/bin/mise activate bash)" \
310+
# && go install mvdan.cc/sh/v3/cmd/shfmt@v3.12.0
301311

302312
# Install btop system monitor (2026-01-22)
303313
USER root

0 commit comments

Comments
 (0)