docker-icecast/Dockerfile

30 lines
982 B
Docker
Raw Permalink Normal View History

2016-02-25 16:36:42 +00:00
FROM alpine:3.3
ENV ICECAST_VERSION 2.4.3
RUN \
2016-02-25 18:06:05 +00:00
apk --update add build-base file libssl1.0 openssl-dev libxslt libxslt-dev libvorbis \
libvorbis-dev opus opus-dev libogg libogg-dev speex speex-dev libtheora \
libtheora-dev curl curl-dev &&\
2016-02-25 16:36:42 +00:00
curl http://downloads.xiph.org/releases/icecast/icecast-${ICECAST_VERSION}.tar.gz |\
tar xz -C /tmp &&\
cd /tmp/icecast-${ICECAST_VERSION} &&\
./configure --enable-static &&\
make &&\
make install &&\
2016-02-25 18:06:05 +00:00
apk del build-base file openssl-dev libxslt-dev libvorbis-dev opus-dev libogg-dev \
speex-dev libtheora-dev curl-dev &&\
2016-02-25 16:36:42 +00:00
cd $HOME &&\
rm -rf /tmp/* /var/cache/apk/* &&\
addgroup -g 9999 icecast &&\
2016-02-25 18:06:05 +00:00
adduser -S -D -H -u 9999 -G icecast -s /bin/false icecast
2016-02-25 16:36:42 +00:00
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
2016-02-25 16:36:42 +00:00
USER 9999
VOLUME [ "/data" ]
ENTRYPOINT [ "dumb-init" ]
CMD [ "icecast", "-c", "/data/icecast.xml" ]
2016-02-25 16:36:42 +00:00
EXPOSE 8000