modified: Dockerfile

new file:   start.sh
Added script file to start the container
This commit is contained in:
Jonathan Ervine 2020-03-16 20:27:48 +08:00
parent 6a441ce922
commit 1db9edf1f1
2 changed files with 10 additions and 1 deletions

View File

@ -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" ]

6
start.sh Normal file
View File

@ -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