forked from moul/docker-icecast
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (21 loc) · 852 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM ubuntu:bionic
# Based on the Dockerfile for moul/icecast by Manfred Touron <[email protected]>
MAINTAINER Stéphane Lepin <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
ENV IC_VERSION "2.4.0-kh12"
RUN apt-get -qq -y update && \
apt-get -qq -y install build-essential \
wget curl libxml2-dev libxslt1-dev \
libogg-dev libvorbis-dev libtheora-dev \
libspeex-dev python-pip && \
wget "https://github.com/karlheyes/icecast-kh/archive/icecast-$IC_VERSION.tar.gz" -O- | tar zxvf - && \
cd "icecast-kh-icecast-$IC_VERSION" && \
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var && \
make && make install && useradd icecast && \
chown -R icecast /etc/icecast.xml
RUN pip install supervisor supervisor-stdout
ADD ./start.sh /start.sh
ADD ./etc /etc
CMD ["/start.sh"]
EXPOSE 8000
VOLUME ["/config", "/var/log/icecast"]