FROM alpine:latest LABEL maintainer "jerryaldrichiii@gmail.com" RUN apk add --update \ icecast \ mailcap \ jq \ && rm -rf /var/cache/apk/* RUN mkdir -p /etc/icecast RUN mv /etc/icecast.xml /etc/icecast/icecast-original.xml COPY ./icecast.xml /etc/icecast/icecast.xml RUN chown -R icecast:icecast /etc/icecast RUN chown -R icecast:icecast /var/log/icecast RUN chown -R icecast:icecast /usr/share/icecast EXPOSE 8000 RUN mkdir /bootstrap COPY ./config.json /bootstrap RUN chown -R icecast:icecast /bootstrap COPY ./entrypoint.sh /etc/icecast/entrypoint.sh RUN chmod +x /etc/icecast/entrypoint.sh COPY player.html /usr/share/icecast/web/player.html USER icecast:icecast ENTRYPOINT ["/etc/icecast/entrypoint.sh"]