'update files with ansible'
This commit is contained in:
+7
-12
@@ -6,27 +6,22 @@ MAINTAINER “Jonathan Ervine” <docker@ervine.org>
|
||||
# Install updates
|
||||
ENV LANG='en_US.UTF-8' \
|
||||
LANGUAGE='en_US.UTF-8' \
|
||||
TERM='xterm' \
|
||||
VERSION='3.13.0' \
|
||||
HYDRA_USER=hydra \
|
||||
MYNAME=jonny \
|
||||
HYDRA_UID=1027 \
|
||||
HYDRA_GID=1027
|
||||
|
||||
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/v$VERSION/nzbhydra2-$VERSION-linux.zip -O nzbhydra.zip && \
|
||||
RUN wget https://github.com/theotherp/nzbhydra2/releases/download/v3.13.0/nzbhydra2-3.13.0-linux.zip -O hydra.zip && \
|
||||
mkdir /nzbhydra && \
|
||||
unzip /nzbhydra.zip -d /nzbhydra && \
|
||||
unzip /hydra.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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user