You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
720 B

5 years ago
  1. FROM alpine:3.11
  2. MAINTAINER Drew Short <warrick@sothr.com>
  3. ARG rclone_version=v1.50.2
  4. ARG rclone_arch=amd64
  5. RUN apk update \
  6. && apk upgrade \
  7. && apk add --update bash curl unzip jq
  8. RUN cd /tmp \
  9. && curl -O https://downloads.rclone.org/${rclone_version}/rclone-${rclone_version}-linux-${rclone_arch}.zip \
  10. && unzip rclone-${rclone_version}-linux-${rclone_arch}.zip \
  11. && cd rclone-${rclone_version}-linux-${rclone_arch} \
  12. && cp rclone /usr/bin/ \
  13. && chown root:root /usr/bin/rclone \
  14. && chmod 755 /usr/bin/rclone \
  15. && cd .. \
  16. && rm -f rclone-${rclone_version}-linux-${rclone_arch}.zip \
  17. && rm -rf rclone-${rclone_version}-linux-${rclone_arch}
  18. COPY ./assets/* /opt/resource/