2015-09-10 21:02:08 +02:00
|
|
|
# s3cmd in a container
|
|
|
|
#
|
|
|
|
# docker run --rm -it \
|
|
|
|
# -e AWS_ACCESS_KEY \
|
|
|
|
# -e AWS_SECRET_KEY \
|
|
|
|
# -v $(pwd):/root/s3cmd-workspace
|
|
|
|
# --name s3cmd \
|
|
|
|
# jess/s3cmd
|
|
|
|
#
|
2018-09-14 16:10:41 +02:00
|
|
|
FROM debian:sid-slim
|
2017-03-09 19:14:37 +01:00
|
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
2015-09-10 21:02:08 +02:00
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \
|
2015-10-08 01:01:42 +02:00
|
|
|
ca-certificates \
|
2015-09-10 21:02:08 +02:00
|
|
|
s3cmd \
|
|
|
|
--no-install-recommends \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
# Setup s3cmd config
|
|
|
|
RUN { \
|
|
|
|
echo '[default]'; \
|
|
|
|
echo 'access_key=$AWS_ACCESS_KEY'; \
|
|
|
|
echo 'secret_key=$AWS_SECRET_KEY'; \
|
|
|
|
} > ~/.s3cfg
|
|
|
|
|
|
|
|
ENV HOME /root
|
|
|
|
WORKDIR $HOME/s3cmd-workspace
|
|
|
|
|
|
|
|
ENTRYPOINT [ "s3cmd" ]
|