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