2015-07-30 10:27:41 -05:00
|
|
|
FROM linuxserver/baseimage
|
2015-07-15 11:10:00 -05:00
|
|
|
MAINTAINER smdion <me@seandion.com>
|
|
|
|
RUN rm -rf /etc/service/sshd /etc/my_init.d/00_regen_ssh_host_keys.sh
|
2015-07-30 11:14:13 -05:00
|
|
|
ENV LC_ALL C.UTF-8
|
|
|
|
ENV LANG en_US.UTF-8
|
2015-07-30 10:27:41 -05:00
|
|
|
|
2015-07-15 11:10:00 -05:00
|
|
|
|
|
|
|
# Use baseimage-docker's init system
|
|
|
|
CMD ["/sbin/my_init"]
|
|
|
|
|
|
|
|
# Install Dependencies
|
2015-07-28 21:35:29 -04:00
|
|
|
RUN add-apt-repository ppa:mc3man/trusty-media
|
2015-07-28 22:00:22 -04:00
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get install -qy git mc ffmpeg python wget
|
2015-07-28 21:35:29 -04:00
|
|
|
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /var/tmp/*
|
2015-07-15 11:10:00 -05:00
|
|
|
|
2015-07-30 18:22:56 +02:00
|
|
|
#Adduser
|
|
|
|
RUN useradd -u 911 -U -s /bin/false abc
|
|
|
|
RUN usermod -G users abc
|
2015-07-15 11:10:00 -05:00
|
|
|
|
|
|
|
#Adding Custom files
|
|
|
|
ADD init/ /etc/my_init.d/
|
|
|
|
ADD services/ /etc/service/
|
2015-07-15 19:20:45 +02:00
|
|
|
ADD defaults/ /defaults
|
2015-07-15 11:10:00 -05:00
|
|
|
RUN chmod -v +x /etc/service/*/run
|
|
|
|
RUN chmod -v +x /etc/my_init.d/*.sh
|
|
|
|
|
2015-07-30 18:22:56 +02:00
|
|
|
#Volumes and Ports
|
|
|
|
EXPOSE 8181
|
|
|
|
VOLUME /config
|
|
|
|
VOLUME /downloads
|
|
|
|
VOLUME /music
|
|
|
|
|
|
|
|
|