forked from kessibi/libretime-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
52 lines (31 loc) · 1.42 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
FROM ubuntu:18.04
MAINTAINER "[email protected]"
ENV HOSTNAME localhost
ENV DEBIAN_FRONTEND noninteractive
ENV XDG_RUNTIME_DIR 0
ENV LIBRE_V 3.0.0-alpha.8
COPY pkgs_list.apt /pkgs_list.apt
RUN apt-get update && apt-get install --no-install-recommends -y apt-utils && \
apt-get install --no-install-recommends -y $(cat /pkgs_list.apt)
RUN mkdir /src && cd /src && \
url="https://github.com/LibreTime/libretime/archive/$LIBRE_V.tar.gz" && \
file=$(curl $url | sed 's/.* href="//' | sed 's/">.*//') && \
curl $file -o libretime.tar.gz && tar xzvf libretime.tar.gz
WORKDIR "/src"
RUN locale-gen --purge en_US.UTF-8 && \
update-locale LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8
COPY systemctl.py /usr/bin/systemctl
RUN test -L /bin/systemctl || ln -sf /usr/bin/systemctl /bin/systemctl
COPY pkgs_list.apt /pkgs_list.apt
RUN apt-get install --no-install-recommends -y $(cat /pkgs_list.apt)
COPY scripts/libre_start.sh /libre_start.sh
COPY scripts/preparation.sh /preparation.sh
RUN /preparation.sh
ADD scripts/start.sh /
RUN mkdir /liquidsoap && \
cp /usr/local/lib/python2.7/dist-packages/airtime_playout-1.0-py2.7.egg/liquidsoap/* /liquidsoap
WORKDIR /
VOLUME ["/etc/airtime", "/var/lib/postgresql/10/main", "/srv/airtime/stor", \
"/srv/airtime/watch", "/usr/local/lib/python2.7/dist-packages/airtime_playout-1.0-py2.7.egg/liquidsoap/"]
EXPOSE 80 8000
CMD /start.sh && exec /usr/bin/systemctl