docker-icecast2/Dockerfile
2024-05-23 21:19:51 -03:00

20 lines
922 B
Docker

FROM alpine:3.19 as builder
RUN apk add libxslt-dev libxml2-dev libogg-dev libvorbis-dev libtheora-dev openssl-dev curl-dev g++ gcc make git autoconf automake libtool patch
RUN git clone --recursive https://gitlab.xiph.org/xiph/icecast-server.git -b v2.5.0-beta.3 /usr/src/icecast-server
COPY haccme.patch /usr/src/icecast-server/haccme.patch
RUN cd /usr/src/icecast-server &&\
patch -p1 < /usr/src/icecast-server/haccme.patch &&\
autoreconf -i &&\
./configure --prefix=/opt/icecast-server --with-curl &&\
make install
FROM alpine:3.19
COPY --from=builder /opt/icecast-server /opt/icecast-server
RUN apk add libcurl libogg libssl3 libtheora libvorbis libxml2 libxslt bash
COPY run /usr/local/bin/run
RUN chmod +x /usr/local/bin/run &&\
mkdir -p /opt/icecast-server/var/log/icecast
VOLUME ["/opt/icecast-server/config"]
VOLUME ["/opt/icecast-server/var/log/icecast"]
ENTRYPOINT ["/usr/local/bin/run"]