Use dumb-init and shorten down executable paths.

2.4
Icedream 2016-02-25 19:10:01 +01:00
parent abdf143b71
commit 05eaa2abd6
1 changed files with 5 additions and 1 deletions

View File

@ -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