Skip to content
This repository was archived by the owner on Mar 23, 2025. It is now read-only.

Commit ff2f3fc

Browse files
authored
Merge pull request #5 from kuoss/install-gh
install-gh
2 parents c1f97fc + 2282374 commit ff2f3fc

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,13 @@ RUN set -x \
2323
&& code-server --install-extension golang.go
2424

2525
RUN set -x \
26-
&& apt-get update \
27-
&& apt-get install -y --no-install-recommends \
26+
&& type -p curl >/dev/null || (apt update && apt install curl -y) \
27+
&& curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \
28+
&& chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \
29+
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
30+
&& apt update \
31+
&& apt install gh -y \
32+
gh \
2833
make \
2934
&& rm -rf /var/lib/apt/lists/*
3035

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
IMAGE=ghcr.io/kuoss/code-server-go:4.16.1-go1.20.8
1+
TAG=development
2+
IMAGE=ghcr.io/kuoss/code-server-go:$(TAG)
23

34
build:
4-
docker build -t $(IMAGE) . && docker push $(IMAGE)
5+
docker build -t $(IMAGE) .
6+

0 commit comments

Comments
 (0)