-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
31 lines (23 loc) · 958 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
28
29
30
31
FROM ubuntu:18.04
LABEL maintainer="[email protected]"
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y sudo \
m4 libmad0-dev libmp3lame-dev libpcre3-dev \
libsamplerate0-dev libtag1-dev camlp4-extra pkg-config \
opam icecast2 && \
apt-get clean && \
adduser --uid 1001 --disabled-password --gecos '' docker && \
adduser docker sudo && \
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
USER docker
RUN opam init -a -y && opam install -y depext && \
opam depext taglib mad lame cry samplerate liquidsoap && \
opam install -y taglib mad lame cry samplerate liquidsoap
EXPOSE 8000
COPY ./liquidsoap/liquidsoap.tmpl.liq /home/docker/liquidsoap.liq
COPY ./icecast/icecast.tmpl.xml /etc/icecast2/icecast.xml
RUN sudo mkdir -p /home/docker/audiofiles
COPY ./audiofiles /home/docker/audiofiles
VOLUME /home/docker/audiofiles
COPY ./docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]