forked from StreamMachine/StreamMachine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (28 loc) · 861 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
32
33
34
35
# Jinja2 Template idea from: https://tryolabs.com/blog/2015/03/26/configurable-docker-containers-for-multiple-environments/
FROM mediainbox/base
# Maintener
MAINTAINER Alejandro Ferrari <aferrari@mediainbox.net>
# Change localtime
RUN rm /etc/localtime && ln -s /usr/share/zoneinfo/Etc/UTC /etc/localtime
RUN apk add --update \
python \
python-dev \
py-pip \
py-setuptools \
build-base \
tar \
bzip2 \
nasm \
git \
bash \
curl
RUN pip install --upgrade pip && pip install j2cli
WORKDIR /srv
RUN git clone https://github.com/mediainbox/StreamMachine.git
RUN cd StreamMachine && npm install
COPY master.json.j2 /config/
COPY docker-entrypoint.sh /
RUN chmod +x /docker-entrypoint.sh
VOLUME "/config"
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["StreamMachine/streammachine-cmd", "--config", "/config/master.json"]