modified: Dockerfile

new file:   start.sh

Added startup script for sonarr
This commit is contained in:
Jonny Ervine 2020-03-16 14:18:15 +00:00
parent d12204cc5d
commit 017a8714b3
2 changed files with 10 additions and 1 deletions

View File

@ -25,6 +25,9 @@ RUN echo http://dl-4.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositorie
rm -rf /tmp/src && \ rm -rf /tmp/src && \
rm -rf /var/cache/apk/* rm -rf /var/cache/apk/*
ADD start.sh /usr/loca/bin/start.sh
RUN chmod 755 /usr/local/bin/start.sh
RUN wget https://update.sonarr.tv/v2/master/mono/NzbDrone.master.tar.gz -O nzbdrone.tar.gz && \ RUN wget https://update.sonarr.tv/v2/master/mono/NzbDrone.master.tar.gz -O nzbdrone.tar.gz && \
tar zxvf nzbdrone.tar.gz && \ tar zxvf nzbdrone.tar.gz && \
rm -rf nzbdrone.tar.gz && \ rm -rf nzbdrone.tar.gz && \
@ -36,4 +39,4 @@ EXPOSE 8989
USER $SONARR_USER USER $SONARR_USER
CMD [ "/usr/bin/mono", "--debug", "/NzbDrone/NzbDrone.exe", "/nobrowser", "/data=/config" ] CMD [ "/usr/local/bin/start.sh" ]

6
start.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/sh
##
## Script to start the sonarr server
##
until [ -f "/config/sonarr.db" ]; do sleep 1; done
/usr/bin/mono --debug /NzbDrone/NzbDrone.exe /nobrowser /data=/config