new file: Dockerfile
new file: Jenkinsfile Initial commit
This commit is contained in:
+37
@@ -0,0 +1,37 @@
|
||||
# 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.13.13' \
|
||||
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 \
|
||||
python
|
||||
|
||||
RUN wget https://github.com/theotherp/nzbhydra2/archive/$VERSION.tar.gz -O nzbhydra.tar.gz && \
|
||||
tar zxvf nzbhydra.tar.gz && \
|
||||
mv nzbhydra-$VERSION nzbhydra && \
|
||||
rm -rf nzbhydra.tar.gz && \
|
||||
apk del make gcc g++ && \
|
||||
rm -rf /tmp/src && \
|
||||
rm -rf /var/cache/apk/* && \
|
||||
addgroup -g $MED_GID $MED_GROUP && \
|
||||
adduser -D -u $MED_UID -G $MED_GROUP -H $MED_USER && \
|
||||
chown -R $MED_USER:$MED_GROUP /nzbhydra
|
||||
|
||||
EXPOSE 5075
|
||||
|
||||
USER $MED_USER
|
||||
|
||||
CMD [ "/usr/bin/python", "/nzbhydra/nzbhydra.py", "--nobrowser", "--config=/config/settings.cfg" ]
|
||||
Reference in New Issue
Block a user