Skip to content

Commit bd302f7

Browse files
authored
Switch base image to Ubuntu and modify CLI install
Changed base image from Debian to Ubuntu and updated GitHub CLI installation method.
1 parent 85ddf6b commit bd302f7

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

shell/Dockerfile

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ COPY shell/ ./shell/
1313
# Build the binary
1414
RUN CGO_ENABLED=0 GOOS=linux go build -o shell-mcp-server ./shell/
1515

16-
# Final stage - use Debian instead of Alpine for glibc compatibility
17-
FROM debian:bookworm-slim
18-
16+
FROM ubuntu
1917
# Install required runtime dependencies
2018
RUN apt-get update && apt-get install -y --no-install-recommends \
2119
ca-certificates \
@@ -27,13 +25,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2725
&& rm -rf /var/lib/apt/lists/*
2826

2927
# Install GitHub CLI
30-
RUN (type -p wget >/dev/null || (apt-get update && apt-get install wget -y)) \
31-
&& mkdir -p -m 755 /etc/apt/keyrings \
32-
&& out=$(mktemp) && wget -nv -O$out https://cli.github.com/packages/githubcli-archive-keyring.gpg \
33-
&& cat $out | tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
34-
&& chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
35-
&& mkdir -p -m 755 /etc/apt/sources.list.d \
36-
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
28+
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0 \
29+
&& apt-add-repository https://cli.github.com/packages \
3730
&& apt-get update \
3831
&& apt-get install gh -y \
3932
&& rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)