FROM debian:buster-slim LABEL maintainer="Jonathan Ervine " # Set ENV variables ENV LANG='en_US.UTF-8' \ LANGUAGE='en_US.UTF-8' \ TERM='xterm' \ VERSION='2.26.0' \ HYDRA_USER='hydra' \ HYDRA_UID='1003' \ HYDRA_GID='1003' # Install updates RUN apt update && apt upgrade -y && \ apt install unzip git python3 default-jre-headless -y && \ wget https://github.com/theotherp/nzbhydra2/releases/download/v$VERSION/nzbhydra2-$VERSION-linux.zip -O nzbhydra.zip && \ mkdir /nzbhydra && \ unzip /nzbhydra.zip -d /nzbhydra && \ useradd -u $HYDRA_UID -U -M $HYDRA_USER && \ chmod 755 /nzbhydra/nzbhydra2 EXPOSE 5076 VOLUME /config WORKDIR /nzbhydra CMD [ "/usr/bin/python3", "nzbhydra2wrapperPy3.py", "--nobrowser", "--datafolder=/config/" ]