Amazon S3 command line
= python:3.7.4-slim-stretch plus:
docker run -ti dswidgetlab/awscli
root@awscli:/# aws --version
aws-cli/1.16.248 Python/3.7.4 Linux/4.9.184-linuxkit botocore/1.12.238
FROM python:3.7-slim-stretch
# pip install
RUN pip install awscli
RUN aws --version
# apt install
RUN apt-get update && DEBIAN_FRONTEND=noninteractive
RUN apt-get install -y apt-utils zip openssh-client jq curl
RUN apt-get install -y git
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# yq install
RUN wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/download/v4.25.1/yq_linux_amd64
RUN chmod +x /usr/local/bin/yq
# update SSH config
RUN mv /etc/ssh/ssh_config /etc/ssh/ssh_config.orig
COPY ssh_config /etc/ssh/ssh_config
RUN chmod 644 /etc/ssh/ssh_config
RUN mkdir -p /home/s3/.ssh
RUN chmod 700 /home/s3/.ssh
WORKDIR /home/s3
ENTRYPOINT bash
docker build -t dswidgetlab/awscli .
docker push dswidgetlab/awscli
Content type
Image
Digest
Size
105.9 MB
Last updated
over 4 years ago
docker pull dswidgetlab/awscli