forked from StreamMachine/sm-archiver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (30 loc) · 974 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
36
37
# Jinja2 Template idea from: https://tryolabs.com/blog/2015/03/26/configurable-docker-containers-for-multiple-environments/
FROM mediainbox/base
# Maintener
MAINTAINER Alejandro Ferrari <[email protected]>
# 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/sm-archiver.git
# Master Branch
RUN cd sm-archiver && npm install && npm run compile:v8
RUN cd sm-archiver && cp -a src/archiver/monitors/v8/* js/src/archiver/monitors/v8/
COPY archiver.json.j2 /config/
COPY docker-entrypoint.sh /
RUN chmod +x /docker-entrypoint.sh
VOLUME "/config"
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["sm-archiver/runner-cmd", "--config", "/config/archiver.json"]