FROM frolvlad/alpine-glibc:latest LABEL maintainer="Mike Crute " RUN set -eu -o pipefail; \ apk --no-cache add dumb-init runit su-exec; \ wget -O /tmp/dropbox.tar.gz https://www.dropbox.com/download?plat=lnx.x86_64; \ mkdir -p /opt/dropbox; \ tar -C /opt/dropbox/ --strip-components=1 -xf /tmp/dropbox.tar.gz; \ rm -rf /tmp/*; ADD entrypoint.sh / ADD dropbox-srv/ /opt/dropbox-srv ENTRYPOINT [ "/entrypoint.sh" ] # Dropbox is a persnickety process that will die without error for no obvious # reason. Run it with runsv so that it will get restarted when it does die # instead of killing the whole container.. CMD [ "/sbin/runsv", "/opt/dropbox-srv" ]