-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (23 loc) · 939 Bytes
/
Copy pathDockerfile
File metadata and controls
31 lines (23 loc) · 939 Bytes
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
FROM amd64/alpine
ENV RCLONE_VER=1.52.1 \
BUILD_DATE=20200617T131603 \
ARCH=amd64 \
SUBCMD="" \
CONFIG="--config /config/rclone.conf" \
PARAMS=""
LABEL build_version="Version:- ${RCLONE_VER} Build-date:- ${BUILD_DATE}"
LABEL maintainer="Lucas Halbert <lhalbert@lhalbert.xyz>"
MAINTAINER Lucas Halbert <lhalbert@lhalbert.xyz>
RUN apk add --no-cache --update ca-certificates fuse fuse-dev unzip curl && \
curl -O https://downloads.rclone.org/v${RCLONE_VER}/rclone-v${RCLONE_VER}-linux-${ARCH}.zip && \
unzip rclone-v${RCLONE_VER}-linux-${ARCH}.zip && \
cd rclone-*-linux-${ARCH} && \
cp rclone /usr/bin/ && \
chown root:root /usr/bin/rclone && \
chmod 755 /usr/bin/rclone && \
apk del --purge unzip curl && \
cd ../ && \
rm -f rclone-v${RCLONE_VER}-linux-${ARCH}.zip && \
rm -r rclone-*-linux-${ARCH}
COPY docker-entrypoint.sh /usr/bin/
ENTRYPOINT ["docker-entrypoint.sh"]