mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
s3cmd
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
This commit is contained in:
parent
e9a4c867d4
commit
19a1b1c917
28
s3cmd/Dockerfile
Normal file
28
s3cmd/Dockerfile
Normal file
|
@ -0,0 +1,28 @@
|
|||
# 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
|
||||
#
|
||||
FROM debian:sid
|
||||
MAINTAINER Jessica Frazelle <jess@docker.com>
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
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" ]
|
Loading…
Reference in New Issue
Block a user