initial revision

This commit is contained in:
Jason Swank
2023-12-02 21:16:07 +00:00
commit 009bff7106
11 changed files with 268 additions and 0 deletions

26
Dockerfile Normal file
View File

@@ -0,0 +1,26 @@
FROM public.ecr.aws/amazonlinux/amazonlinux:2023
LABEL org.opencontainers.image.title=jswank/aws-cli \
org.opencontainers.image.description="A minimal image for running AWS CLI " \
org.opencontainers.image.url=https://git.sr.ht/~jswank/aws-cli \
org.opencontainers.image.authors="Jason Swank" \
org.opencontainers.image.licenses=MIT
RUN yum install -y --allowerasing \
coreutils shadow-utils \
less which \
sudo vim-minimal \
aws-cli && \
yum clean all
RUN adduser -r --create-home --shell /bin/bash --groups wheel cli
RUN echo "%wheel ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/00-all-wheel-np
COPY --chown=cli:cli home /home/cli
WORKDIR /home/cli
USER cli
CMD ["/bin/bash", "-l"]