Sign inSign up

eyadgaran/rclone

By eyadgaran

•Updated over 3 years ago

rclone with sleep

Image
0

164

eyadgaran/rclone repository overview

Fork of rclone/rclone

Wraps main entrypoint with optional sleep command ($SLEEP_TIME) to enable cron like behavior with restart policy

ARG VERSION

FROM rclone/rclone:$VERSION

WORKDIR /entry
COPY ./entry.sh /entry/entry.sh
RUN chmod +x /entry/entry.sh


ENTRYPOINT ["/bin/sh", "/entry/entry.sh"]
#!/bin/sh

set -e


rclone "$@"

if [ -z "${SLEEP_TIME}" ]; then
  true
else
  echo "Sleeping ${SLEEP_TIME}"
  sleep $SLEEP_TIME
fi

Tag summary

Content type

Image

Digest

sha256:b41b77b84…

Size

18.7 MB

Last updated

over 3 years ago

docker pull eyadgaran/rclone:1.62.2