Skip to content

Commit

Permalink
add ghcli
Browse files Browse the repository at this point in the history
  • Loading branch information
snigdhasjg committed Apr 26, 2024
1 parent ffc9f98 commit 0a82aaa
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
22 changes: 22 additions & 0 deletions ghcli/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM debian:bookworm-slim

RUN set -ex; \
apt-get update ; \
apt-get install -y --no-install-recommends \
ca-certificates \
curl \
git; \
rm -rf /var/lib/apt/lists/*

ENV GITHUB_CLI_VERSION 2.48.0

RUN set -ex; \
curl -L "https://github.com/cli/cli/releases/download/v${GITHUB_CLI_VERSION}/gh_${GITHUB_CLI_VERSION}_checksums.txt" -o checksums.txt; \
curl -OL "https://github.com/cli/cli/releases/download/v${GITHUB_CLI_VERSION}/gh_${GITHUB_CLI_VERSION}_linux_amd64.deb"; \
shasum --ignore-missing -a 512 -c checksums.txt; \
dpkg -i "gh_${GITHUB_CLI_VERSION}_linux_amd64.deb"; \
rm -rf "gh_${GITHUB_CLI_VERSION}_linux_amd64.deb"; \
# verify gh binary works
gh --version;

CMD ["gh"]
1 change: 1 addition & 0 deletions ghcli/docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Welcome to GitHub Cli
1 change: 1 addition & 0 deletions ghcli/docs/short_description.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Your GitHub cli docker image

0 comments on commit 0a82aaa

Please sign in to comment.