-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
56 lines (44 loc) · 1.68 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
FROM farmcoolcow/entrypoints
ENV LABEL_MAINTAINER="Jean-Michel Ruiz (coolcow) <[email protected]>" \
LABEL_VENDOR="coolcow.org" \
LABEL_IMAGE_NAME="farmcoolcow/rclone" \
LABEL_URL="https://hub.docker.com/r/farmcoolcow/rclone/" \
LABEL_VCS_URL="https://github.com/farmcoolcow/docker_rclone" \
LABEL_DESCRIPTION="Simple rclone Docker image based on alpine." \
LABEL_LICENSE="GPL-3.0" \
ARCH=amd64 \
RCLONE_VERSION=current \
RCLONE_DOWNLOAD=http://downloads.rclone.org \
ENTRYPOINT_USER=rclone \
ENTRYPOINT_GROUP=rclone \
ENTRYPOINT_HOME=/home
# install rclone
RUN apk --no-cache --update add \
ca-certificates \
fuse \
openssl \
&& cd /tmp \
&& wget -q ${RCLONE_DOWNLOAD}/rclone-${RCLONE_VERSION}-linux-${ARCH}.zip \
&& unzip /tmp/rclone-${RCLONE_VERSION}-linux-${ARCH}.zip \
&& mv /tmp/rclone-*-linux-${ARCH}/rclone /usr/bin \
&& rm -r /tmp/rclone-*-linux-${ARCH}/
VOLUME $ENTRYPOINT_HOME
WORKDIR $ENTRYPOINT_HOME
ENTRYPOINT ["/entrypoint_su-exec.sh", "rclone"]
CMD ["--help"]
#
ARG LABEL_VERSION="latest"
ARG LABEL_BUILD_DATE
ARG LABEL_VCS_REF
# Build-time metadata as defined at http://label-schema.org
LABEL maintainer=$LABEL_MAINTAINER \
org.label-schema.build-date=$LABEL_BUILD_DATE \
org.label-schema.description=$LABEL_DESCRIPTION \
org.label-schema.name=$LABEL_IMAGE_NAME \
org.label-schema.schema-version="1.0" \
org.label-schema.url=$LABEL_URL \
org.label-schema.license=$LABEL_LICENSE \
org.label-schema.vcs-ref=$LABEL_VCS_REF \
org.label-schema.vcs-url=$LABEL_VCS_URL \
org.label-schema.vendor=$LABEL_VENDOR \
org.label-schema.version=$LABEL_VERSION