x86_64-alpine-nzbhydra/Dockerfile
2020-10-23 10:05:35 +08:00

34 lines
1.0 KiB
Docker

# Base on latest (edge) alpine image
FROM harbor.ervine.dev/public/x86_64/alpine/liberica-openjdk-alpine-musl:14.0.2-x86_64
MAINTAINER “Jonathan Ervine” <docker@ervine.org>
# Install updates
ENV LANG='en_US.UTF-8' \
LANGUAGE='en_US.UTF-8' \
TERM='xterm' \
VERSION='3.2.1' \
HYDRA_USER=hydra \
HYDRA_UID=1027 \
HYDRA_GID=1027
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/v$VERSION/nzbhydra2-$VERSION-linux.zip -O nzbhydra.zip && \
mkdir /nzbhydra && \
unzip /nzbhydra.zip -d /nzbhydra && \
chmod 755 /nzbhydra/nzbhydra2 && \
rm -rf /nzbhydra.zip /tmp/src /var/cache/apk/* && \
addgroup -g $HYDRA_GID $HYDRA_USER && \
adduser -D -u $HYDRA_UID -G $HYDRA_USER -H $HYDRA_USER
EXPOSE 5076
VOLUME /config
WORKDIR /nzbhydra
CMD [ "/usr/bin/python3", "nzbhydra2wrapperPy3.py", "--nobrowser", "--datafolder=/config/" ]