You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
834 B
34 lines
834 B
FROM alpine:latest
|
|
|
|
LABEL maintainer "jerryaldrichiii@gmail.com"
|
|
|
|
# https://pkgs.alpinelinux.org/packages?name=icecast&branch=edge&repo=&arch=&maintainer=
|
|
RUN apk add --update \
|
|
icecast=2.4.4-r7 \
|
|
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"]
|
|
|