modified: Dockerfile

Adjusted unzip command to extract to specific directory
This commit is contained in:
Jonny Ervine 2020-02-19 09:28:31 +00:00
parent 5f4b29b338
commit 263d0c027b

View File

@ -21,9 +21,8 @@ RUN echo http://dl-4.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositorie
RUN echo $VERSION
RUN wget https://github.com/theotherp/nzbhydra2/releases/download/v$VERSION/nzbhydra2-$VERSION-linux.zip -O nzbhydra.zip
RUN mkdir /nzbhydra
RUN cd /nzbhydra
RUN unzip ..//nzbhydra.zip
RUN chmod 755 nzbhydra2
RUN unzip /nzbhydra.zip -d /nzbhydra
RUN chmod 755 /nzbhydra/nzbhydra2
RUN rm -rf /nzbhydra.zip
RUN rm -rf /tmp/src
RUN rm -rf /var/cache/apk/*
@ -37,4 +36,4 @@ WORKDIR /nzbhydra
VOLUME /config
USER $MED_USER
CMD [ "/usr/bin/python3", "/nzbhydra/nzbhydra2wrapperPy3.py", "--nobrowser", "--datafolder=/config/" ]
CMD [ "/usr/bin/python3", "nzbhydra2wrapperPy3.py", "--nobrowser", "--datafolder=/config/" ]