27 lines
723 B
Docker
27 lines
723 B
Docker
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"]
|