30 lines
939 B
Docker
30 lines
939 B
Docker
# Base on latest (edge) alpine image
|
|
FROM harbor.ervine.dev/public/x86_64/alpine/liberica-openjre-alpine:17.0.2-9
|
|
|
|
MAINTAINER “Jonathan Ervine” <docker@ervine.org>
|
|
|
|
# Install updates
|
|
ENV LANG='en_US.UTF-8' \
|
|
LANGUAGE='en_US.UTF-8' \
|
|
TERM='xterm'
|
|
|
|
RUN echo http://dl-4.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories && \
|
|
apk update && \
|
|
apk -U upgrade --ignore alpine-baselayout && \
|
|
apk -U add unzip python3
|
|
|
|
RUN wget https://github.com/theotherp/nzbhydra2/releases/download/v4.3.1/nzbhydra2-4.3.1-linux.zip -O hydra.zip && \
|
|
mkdir /nzbhydra && \
|
|
unzip /hydra.zip -d /nzbhydra && \
|
|
chmod 755 /nzbhydra/nzbhydra2 && \
|
|
rm -rf /hydra.zip /tmp/src /var/cache/apk/* && \
|
|
addgroup -g 1027 hydra && \
|
|
adduser -D -u 1027 -G hydra -H hydra
|
|
|
|
USER hydra
|
|
EXPOSE 5076
|
|
VOLUME /config
|
|
WORKDIR /nzbhydra
|
|
|
|
CMD [ "/usr/bin/python3", "nzbhydra2wrapperPy3.py", "--nobrowser", "--datafolder=/config/" ]
|