docker-headphones/Dockerfile

35 lines
765 B
Text
Raw Normal View History

2015-07-15 11:10:00 -05:00
FROM phusion/baseimage:0.9.16
MAINTAINER smdion <me@seandion.com>
RUN rm -rf /etc/service/sshd /etc/my_init.d/00_regen_ssh_host_keys.sh
ENV DEBIAN_FRONTEND noninteractive
ENV HOME /root
ENV TERM screen
# Use baseimage-docker's init system
CMD ["/sbin/my_init"]
# Install Dependencies
RUN apt-get update -q
RUN apt-get install -qy git python wget
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /var/tmp/*
RUN mkdir /opt/headphones
2015-07-15 11:10:00 -05:00
#Volumes and Ports
EXPOSE 8181
VOLUME /config
VOLUME /downloads
VOLUME /music
#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
#Adduser
RUN useradd -u 911 -U -s /bin/false abc
RUN usermod -G users abc