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.

26 lines
834 B

5 years ago
5 years ago
  1. FROM alpine:3.11
  2. LABEL 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/
  19. RUN chmod 755 /opt/resource/check \
  20. && chmod +x /opt/resource/in \
  21. && chmod +x /opt/resource/out