modified: Dockerfile
new file: start.sh Added startup script
This commit is contained in:
parent
019d1e1dc4
commit
ca4f0e5885
15
Dockerfile
15
Dockerfile
@ -7,11 +7,7 @@ MAINTAINER “Jonathan Ervine” <docker@ervine.org>
|
|||||||
ENV LANG='en_US.UTF-8' \
|
ENV LANG='en_US.UTF-8' \
|
||||||
LANGUAGE='en_US.UTF-8' \
|
LANGUAGE='en_US.UTF-8' \
|
||||||
TERM='xterm' \
|
TERM='xterm' \
|
||||||
VERSION='2.22.1' \
|
VERSION='2.22.1'
|
||||||
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 && \
|
RUN echo http://dl-4.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories && \
|
||||||
apk update && \
|
apk update && \
|
||||||
@ -23,14 +19,9 @@ RUN wget https://github.com/theotherp/nzbhydra2/releases/download/v$VERSION/nzbh
|
|||||||
unzip /nzbhydra.zip -d /nzbhydra && \
|
unzip /nzbhydra.zip -d /nzbhydra && \
|
||||||
chmod 755 /nzbhydra/nzbhydra2 && \
|
chmod 755 /nzbhydra/nzbhydra2 && \
|
||||||
rm -rf /nzbhydra.zip /tmp/src /var/cache/apk/*
|
rm -rf /nzbhydra.zip /tmp/src /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
|
EXPOSE 5076
|
||||||
|
COPY start.sh /usr/local/bin/start.sh
|
||||||
WORKDIR /nzbhydra
|
|
||||||
VOLUME /config
|
VOLUME /config
|
||||||
USER $MED_USER
|
|
||||||
|
|
||||||
CMD [ "/usr/bin/python3", "nzbhydra2wrapperPy3.py", "--nobrowser", "--datafolder=/config/" ]
|
CMD [ "/usr/local/bin/start.sh" ]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user