Skip to content

Commit 54f8fda

Browse files
RasmusGodskeclaude
andcommitted
fix: Install Bun and tools for root user in Dockerfile
GitHub Actions run as root, so tools need to be installed for both vscode and root users. This adds: - Bun installation for root (required for claude-code-action) - PATH exports in /root/.bashrc for proper shell environment - Separate RUN statements with echo for better debugging and caching Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 6cc8afc commit 54f8fda

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

.devcontainer/Dockerfile

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,16 +101,27 @@ USER root
101101
RUN echo 'export PATH="$PATH:/home/vscode/.claude/local/bin"' >> /home/vscode/.zshrc
102102
RUN echo 'export PATH="$PATH:/home/vscode/.local/bin"' >> /home/vscode/.zshrc
103103

104-
# Install tools for root user (GitHub Actions runs as root)
105-
RUN curl -fsSL https://claude.ai/install.sh | bash \
104+
# Install Bun and Claude Code for root user (GitHub Actions runs as root)
105+
RUN echo "Installing Bun for root..." \
106+
&& curl -fsSL https://bun.sh/install | bash \
107+
&& echo 'export BUN_INSTALL="$HOME/.bun"' >> /root/.bashrc \
108+
&& echo 'export PATH="$BUN_INSTALL/bin:$PATH"' >> /root/.bashrc
109+
RUN echo "Installing Claude Code for root..." \
110+
&& curl -fsSL https://claude.ai/install.sh | bash \
111+
&& echo 'export PATH="$HOME/.local/bin:$PATH"' >> /root/.bashrc
112+
RUN echo "Installing uv for root..." \
106113
&& curl -LsSf https://astral.sh/uv/install.sh | sh \
114+
&& echo 'export PATH="$HOME/.local/bin:$PATH"' >> /root/.bashrc
115+
RUN echo "Installing lumby for root..." \
107116
&& /root/.local/bin/uv tool install lumby \
108-
&& /root/.local/bin/uv tool install reldo \
109-
&& /root/.local/bin/uv tool install tarnished \
110117
&& ln -s /root/.local/bin/lumby /usr/local/bin/lumby \
111-
&& ln -s /root/.local/bin/reldo /usr/local/bin/reldo \
112-
&& ln -s /root/.local/bin/tarnished /usr/local/bin/tarnished \
113118
&& ln -s /root/.local/bin/uvx /usr/local/bin/uvx
119+
RUN echo "Installing reldo for root..." \
120+
&& /root/.local/bin/uv tool install reldo \
121+
&& ln -s /root/.local/bin/reldo /usr/local/bin/reldo
122+
RUN echo "Installing tarnished for root..." \
123+
&& /root/.local/bin/uv tool install tarnished \
124+
&& ln -s /root/.local/bin/tarnished /usr/local/bin/tarnished
114125

115126
# Create symlinks for devtools commands (short aliases)
116127
RUN ln -s /home/vscode/project/devtools/test/php.sh /usr/local/bin/test:php \

0 commit comments

Comments
 (0)