Skip to content

Commit 5ed09bb

Browse files
authored
Merge pull request #870 from andrew-glenn/main
publication leveraging python image
2 parents 8269647 + f53da16 commit 5ed09bb

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
FROM public.ecr.aws/codebuild/amazonlinux2-x86_64-standard:4.0
2-
RUN yum install -y yum-utils && yum-config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo && yum install -y gh
1+
FROM public.ecr.aws/docker/library/python:3-bookworm
2+
RUN (type -p wget >/dev/null || ( apt update && apt install wget -y)) \
3+
&& mkdir -p -m 755 /etc/apt/keyrings \
4+
&& out=$(mktemp) && wget -nv -O$out https://cli.github.com/packages/githubcli-archive-keyring.gpg \
5+
&& cat $out | tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
6+
&& chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
7+
&& mkdir -p -m 755 /etc/apt/sources.list.d \
8+
&& 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 \
9+
&& apt update \
10+
&& apt install gh -y
311
RUN pip install copier
412
RUN pip install bump2version

0 commit comments

Comments
 (0)