modified: Dockerfile
new file: start.sh Added start script
This commit is contained in:
parent
f4b5ac434d
commit
ca01e93e9c
16
Dockerfile
16
Dockerfile
@ -7,11 +7,7 @@ LABEL maintainer “Jonathan Ervine” <docker@ervine.org> architecture="x86_64"
|
|||||||
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='master' \
|
VERSION='master'
|
||||||
CP_USER='mediaservice' \
|
|
||||||
CP_GROUP='mediaservice' \
|
|
||||||
CP_UID='1003' \
|
|
||||||
CP_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 && \
|
||||||
@ -28,13 +24,11 @@ RUN wget https://github.com/CouchPotato/CouchPotatoServer/archive/$VERSION.tar.g
|
|||||||
rm -rf couchpotato.tar.gz && \
|
rm -rf couchpotato.tar.gz && \
|
||||||
apk del make gcc g++ && \
|
apk del make gcc g++ && \
|
||||||
rm -rf /tmp/src && \
|
rm -rf /tmp/src && \
|
||||||
rm -rf /var/cache/apk/* && \
|
rm -rf /var/cache/apk/*
|
||||||
addgroup -g $CP_GID $CP_GROUP && \
|
|
||||||
adduser -D -u $CP_UID -G $CP_GROUP -H $CP_USER && \
|
COPY start.sh /usr/local/bin/start.sh
|
||||||
chown -R $CP_USER:$CP_GROUP /couchpotato
|
|
||||||
|
|
||||||
EXPOSE 5050
|
EXPOSE 5050
|
||||||
|
|
||||||
USER $CP_USER
|
|
||||||
|
|
||||||
CMD [ "/usr/bin/python2", "/couchpotato/CouchPotato.py", "--console_log", "--data_dir=/config" ]
|
CMD [ "/usr/local/bin/start.sh" ]
|
||||||
|
|||||||
9
start.sh
Executable file
9
start.sh
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
## Script to kick off Couchpotato Movies media orgnaiser
|
||||||
|
#
|
||||||
|
addgroup -g $GID coucpotato
|
||||||
|
adduser -D -u $UID -G couchpotato -H couchpotato
|
||||||
|
chown -R $UID:$GID /couchpotato
|
||||||
|
su - $UID
|
||||||
|
/usr/bin/python2 /couchpotato/CouchPotato.py --console_log --data_dir=/config" ]
|
||||||
Loading…
Reference in New Issue
Block a user