From 05eaa2abd6e5408212c4a5d3619df5a2196e1961 Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Thu, 25 Feb 2016 19:10:01 +0100 Subject: [PATCH] Use dumb-init and shorten down executable paths. --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 52b726d..45cfce1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,7 +19,11 @@ RUN \ addgroup -g 9999 icecast &&\ adduser -S -D -H -u 9999 -G icecast -s /bin/false icecast +ADD https://github.com/Yelp/dumb-init/releases/download/v1.0.0/dumb-init_1.0.0_amd64 /usr/local/bin/dumb-init +RUN chmod +x /usr/local/bin/dumb-init + USER 9999 VOLUME [ "/data" ] -CMD [ "/usr/local/bin/icecast", "-c", "/data/icecast.xml" ] +ENTRYPOINT [ "dumb-init" ] +CMD [ "icecast", "-c", "/data/icecast.xml" ] EXPOSE 8000