x86_64-alpine-nzbhydra/Dockerfile
Jonathan Ervine ca4f0e5885 modified: Dockerfile
new file:   start.sh
Added startup script
2020-05-29 00:03:42 +08:00

28 lines
825 B
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.22.1'
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 /tmp/src /var/cache/apk/*
EXPOSE 5076
COPY start.sh /usr/local/bin/start.sh
VOLUME /config
CMD [ "/usr/local/bin/start.sh" ]