#! /bin/sh # exit if a command fails set -e # install s3cmd apk update apk add python py-pip py-setuptools git openssl pip install python-magic git clone https://github.com/s3tools/s3cmd.git /tmp/s3cmd cd /tmp/s3cmd python setup.py install # cleanup apk del git rm -rf /var/cache/apk/* /tmp/s3cmd