diff --git a/Dockerfile b/Dockerfile index da907fd..4e4a0d9 100755 --- a/Dockerfile +++ b/Dockerfile @@ -1,24 +1,19 @@ -FROM linuxserver/baseimage +FROM linuxserver/baseimage.python MAINTAINER smdion -ENV LC_ALL C.UTF-8 -ENV LANG en_US.UTF-8 - -# Use baseimage-docker's init system -CMD ["/sbin/my_init"] +ENV PYTHONIOENCODING="UTF-8" APTLIST="ffmpeg mc" # Install Dependencies RUN add-apt-repository ppa:mc3man/trusty-media && \ apt-get update && \ -apt-get install -qy git mc ffmpeg python wget && \ +apt-get install -qy $APTLIST && \ apt-get clean && rm -rf /var/lib/apt/lists/* /var/tmp/* #Adding Custom files ADD init/ /etc/my_init.d/ ADD services/ /etc/service/ ADD defaults/ /defaults -RUN chmod -v +x /etc/service/*/run -RUN chmod -v +x /etc/my_init.d/*.sh +RUN chmod -v +x /etc/service/*/run /etc/my_init.d/*.sh #Volumes and Ports EXPOSE 8181 diff --git a/README.md b/README.md index 610be83..0dca17e 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ![http://linuxserver.io](http://www.linuxserver.io/wp-content/uploads/2015/06/linuxserver_medium.png) -The [LinuxServer.io](http://linuxserver.io) team brings you another quality container release featuring auto-update on startup, easy user mapping and community support. Be sure to checkout our [forums](http://forum.linuxserver.io) or for real-time support our [IRC](http://www.linuxserver.io/index.php/irc/) on freenode at `#linuxserver.io`. +The [LinuxServer.io](https://linuxserver.io) team brings you another quality container release featuring auto-update on startup, easy user mapping and community support. Be sure to checkout our [forums](https://forum.linuxserver.io) or for real-time support our [IRC](https://www.linuxserver.io/index.php/irc/) on freenode at `#linuxserver.io`. # linuxserver/Headphones ![https://github.com/rembo10/headphones](http://i.imgur.com/5vSV3Gkl.png) diff --git a/init/10_new_user.sh b/init/10_new_user.sh deleted file mode 100644 index 8e19aa9..0000000 --- a/init/10_new_user.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -if [ ! "$(id -u abc)" -eq "$PUID" ]; then usermod -o -u "$PUID" abc ; fi -if [ ! "$(id -g abc)" -eq "$PGID" ]; then groupmod -o -g "$PGID" abc ; fi -echo " ------------------------------------ -GID/UID ------------------------------------ -User uid: $(id -u abc) -User gid: $(id -g abc) ------------------------------------ -" \ No newline at end of file diff --git a/init/25_update_apt.sh b/init/25_update_apt.sh deleted file mode 100644 index 73ff990..0000000 --- a/init/25_update_apt.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -apt-get update -qq -apt-get --only-upgrade install -yqq ffmpeg diff --git a/init/20_update.sh b/init/30_update.sh similarity index 100% rename from init/20_update.sh rename to init/30_update.sh diff --git a/init/40_check_config.sh b/init/40_check_config.sh index 028274e..bfa536c 100644 --- a/init/40_check_config.sh +++ b/init/40_check_config.sh @@ -1,7 +1,7 @@ #!/bin/bash -if [ ! -f /config/config.ini ]; then +if [ ! -f /config/config.ini ]; then /sbin/setuser abc cp -v /defaults/config.ini /config/config.ini fi