File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,6 +21,19 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2121 ca-certificates \
2222 curl \
2323 bash \
24+ wget \
25+ && rm -rf /var/lib/apt/lists/*
26+
27+ # Install GitHub CLI
28+ RUN (type -p wget >/dev/null || (apt-get update && apt-get install wget -y)) \
29+ && mkdir -p -m 755 /etc/apt/keyrings \
30+ && out=$(mktemp) && wget -nv -O$out https://cli.github.com/packages/githubcli-archive-keyring.gpg \
31+ && cat $out | tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
32+ && chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
33+ && mkdir -p -m 755 /etc/apt/sources.list.d \
34+ && 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 \
35+ && apt-get update \
36+ && apt-get install gh -y \
2437 && rm -rf /var/lib/apt/lists/*
2538
2639# Install opencode and capture the installation location
You can’t perform that action at this time.
0 commit comments