aboutsummaryrefslogtreecommitdiff
path: root/dropbox/Dockerfile
blob: 7e6ff2b8d8e8fa2028fe17505d367fa07ed6b9af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM frolvlad/alpine-glibc:latest
LABEL maintainer="Mike Crute <mike@crute.us>"

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" ]