From 5f3e9d738e31117f00b78bcf24d9f52ae7b55d09 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 21 Dec 2018 02:13:20 +0100 Subject: [PATCH] Update image Signed-off-by: Knut Ahlers --- Dockerfile | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 586f541..714e80e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,19 @@ -FROM ubuntu:14.04 -MAINTAINER Knut Ahlers +FROM debian:stable -RUN mkdir /opt/shoutcast && \ - mkdir /var/log/shoutcast +LABEL maintainer Knut Ahlers + +RUN set -ex \ + && mkdir -p \ + /opt/shoutcast \ + /var/log/shoutcast WORKDIR /opt/shoutcast -RUN apt-get update && \ - apt-get install -y wget && \ - wget http://download.nullsoft.com/shoutcast/tools/sc_serv2_linux_x64-latest.tar.gz && \ - tar -xzf sc_serv2_linux_x64-latest.tar.gz +ADD "http://download.nullsoft.com/shoutcast/tools/sc_serv2_linux_x64-latest.tar.gz" /opt/shoutcast/ +RUN set -ex \ + && tar -xzf sc_serv2_linux_x64-latest.tar.gz VOLUME ["/etc/shoutcast"] EXPOSE 8001 8002 - -ENTRYPOINT ["/opt/shoutcast/sc_serv", "/etc/shoutcast/shoutcast.conf"] +CMD ["/opt/shoutcast/sc_serv", "/etc/shoutcast/shoutcast.conf"]