FROM alpine:3.3 ENV ICECAST_VERSION 2.4.3 RUN \ 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 &&\ 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 &&\ apk del build-base file openssl-dev libxslt-dev libvorbis-dev opus-dev libogg-dev \ speex-dev libtheora-dev curl-dev &&\ cd $HOME &&\ rm -rf /tmp/* /var/cache/apk/* &&\ addgroup -g 9999 icecast &&\ adduser -S -D -H -u 9999 -G icecast -s /bin/false icecast USER 9999 VOLUME [ "/data" ] CMD [ "/usr/local/bin/icecast", "-c", "/data/icecast.xml" ] EXPOSE 8000