From 1db9edf1f1598bc8f44f7c4ac4b182790bbcf532 Mon Sep 17 00:00:00 2001 From: Jonathan Ervine Date: Mon, 16 Mar 2020 20:27:48 +0800 Subject: [PATCH] modified: Dockerfile new file: start.sh Added script file to start the container --- Dockerfile | 5 ++++- start.sh | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 start.sh diff --git a/Dockerfile b/Dockerfile index 0891bbf..8bd1b3d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,4 +20,7 @@ RUN echo http://dl-4.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositorie rm -rf /tmp/src && \ rm -rf /var/cache/apk/* -CMD [ "/bin/sh" ] +COPY start.sh /usr/local/bin/start.sh +RUN chmod 755 /usr/local/bin/start.sh + +CMD [ "/usr/local/bin/start.sh" ] diff --git a/start.sh b/start.sh new file mode 100644 index 0000000..8e91516 --- /dev/null +++ b/start.sh @@ -0,0 +1,6 @@ +#!/bin/sh +## +## Script to automate the copy of Sonarr databases +## +echo -e 'Starting the sidecar container to periodically backup the sonarr databases' +sleep 3600