Public | Automated Build

Last pushed: 8 months ago
Dockerfile
FROM andronics/base MAINTAINER andronics <andronics@gmail.com> RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FDA5DFFC && \ echo "deb http://apt.sonarr.tv/ master main" > /etc/apt/sources.list.d/sonarr.list && \ apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && \ echo "deb http://download.mono-project.com/repo/debian wheezy main" > /etc/apt/sources.list.d/mono-xamarin.list && \ apt-get update && \ apt-get install -y libcurl3 libmono-cil-dev nzbdrone && \ apt-get clean # clean up RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* # install service # COPY sonarr.service /etc/systemd/system/ # RUN sed -ri 's/User=\s+.*/User='"$PNAME"'/g' /etc/systemd/system/sonarr.service # copy file structure COPY config.xml /tmp COPY entrypoint.sh / RUN echo "Creating Folder Structure" && \ mkdir /data && \ mkdir /data/media && \ mkdir -p /home/andronics/.config/sonarr && \ ln -s /home/andronics/.config/sonarr /data/config && \ mkdir -p /home/andronics/.local/share/data/sonarr && \ ln -s /home/andronics/.local/share/data/sonarr /data/autoload && \ mkdir -p /home/andronics/downloads && \ ln -s /home/andronics/downloads /data/downloads && \ mkdir -p /home/andronics/media/tv && \ ln -s /home/andronics/media/tv /data/media/tv && \ echo "Setting Attributes" && \ chmod +x /entrypoint.sh && \ echo "Setting Ownership" && \ chown -R andronics:andronics /data && \ chown -R andronics:andronics /home/andronics VOLUME /data/config VOLUME /data/downloads VOLUME /data/media/tv EXPOSE 8989 USER andronics WORKDIR /opt/NzbDrone ENTRYPOINT ["/entrypoint.sh"] CMD ["mono","--debug","NzbDrone.exe","-nobrowser","-data=/data/config"]
Source Repository