x86_64-alpine-nzbhydra/Dockerfile
Jonathan Ervine 8a01100020 modified: Dockerfile
modified:   Jenkinsfile
Bumped to 2.17.2 and removed some RUN commands to reduce image layers
2020-04-01 17:34:24 +08:00

39 lines
1.1 KiB
Docker

# Base on latest (edge) alpine image
FROM harbor.ervine.dev/library/x86_64/alpine/alpine-3.11
MAINTAINER “Jonathan Ervine” <docker@ervine.org>
# Install updates
ENV LANG='en_US.UTF-8' \
LANGUAGE='en_US.UTF-8' \
TERM='xterm' \
VERSION='2.17.2' \
MED_USER='mediaservice' \
MED_GROUP='mediaservice' \
MED_UID='1003' \
MED_GID='1003'
RUN echo http://dl-4.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories && \
apk update && \
apk -U upgrade && \
apk -U add openjdk11-jre-headless 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 && \
rm -rf /tmp/src && \
rm -rf /var/cache/apk/* && \
RUN addgroup -g $MED_GID $MED_GROUP && \
adduser -D -u $MED_UID -G $MED_GROUP -H $MED_USER
RUN chown -R $MED_USER:$MED_GROUP /nzbhydra
EXPOSE 5076
WORKDIR /nzbhydra
VOLUME /config
USER $MED_USER
CMD [ "/usr/bin/python3", "nzbhydra2wrapperPy3.py", "--nobrowser", "--datafolder=/config/" ]