Use root...

This commit is contained in:
Knut Ahlers 2014-11-14 16:21:05 +01:00
parent 6d7346d9a5
commit 1bd17566de

View file

@ -1,10 +1,8 @@
FROM ubuntu:14.04 FROM ubuntu:14.04
MAINTAINER Knut Ahlers <knut@ahlers.me> MAINTAINER Knut Ahlers <knut@ahlers.me>
RUN useradd -m shoutcast && \ RUN mkdir /opt/shoutcast && \
mkdir /opt/shoutcast && \ mkdir /var/log/shoutcast
mkdir /var/log/shoutcast && \
chown shoutcast /var/log/shoutcast
WORKDIR /opt/shoutcast WORKDIR /opt/shoutcast
@ -17,5 +15,4 @@ VOLUME ["/etc/shoutcast"]
EXPOSE 8000 EXPOSE 8000
USER shoutcast
ENTRYPOINT ["/opt/shoutcast/sc_serv", "/etc/shoutcast/shoutcast.conf"] ENTRYPOINT ["/opt/shoutcast/sc_serv", "/etc/shoutcast/shoutcast.conf"]