From 17aa00de05b300ab3a39b68c0d4d6f430937beaf Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Wed, 27 Jul 2022 19:40:29 +0100 Subject: [PATCH] initial commit --- Dockerfile | 8 ++++++++ entrypoint.sh | 4 ++++ 2 files changed, 12 insertions(+) create mode 100644 Dockerfile create mode 100644 entrypoint.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..cc89277 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM alpine + +RUN apk add wget rclone +RUN wget 'https://github.com/scaleway/scaleway-cli/releases/download/v2.5.1/scaleway-cli_2.5.1_linux_amd64' +RUN mv scaleway-cli_2.5.1_linux_amd64 /scaleway-cli +RUN chmod +x /scaleway-cli +ADD ./entrypoint.sh /entrypoint.sh +CMD /bin/sh /entrypoint.sh diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..72dc979 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +/scaleway-cli object config install type=rclone +rclone copyto $SOURCE $DEST