-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
51 lines (45 loc) · 1.35 KB
/
Dockerfile
File metadata and controls
51 lines (45 loc) · 1.35 KB
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
FROM lasley/makemkvcon:latest
MAINTAINER Dave Lasley <dave@dlasley.net>
ENV DIR_OUT='/var/done' \
DIR_SRC='/var/src' \
CONVERSION_PROFILE='/opt/node-makemkv/conversion_profile.xml' \
HTTP_PORT='80' \
OUTLIER_MODIFIER='0.7' \
APP_KEY=''
# Install dependencies.
RUN buildDeps=' \
build-essential \
git \
gnupg2 \
libudev-dev \
lsb-release \
wget \
'; \
\
apt-get update; \
apt-get install -y --no-install-recommends $buildDeps; \
wget --no-check-certificate -O nodesource_setup.sh https://deb.nodesource.com/setup_6.x; \
\
bash nodesource_setup.sh; \
rm nodesource_setup.sh; \
apt-get install -y nodejs; \
\
npm update -g npm; \
npm install -g coffee-script; \
\
git clone https://github.com/lasley/node-makemkv.git /opt/node-makemkv; \
\
cd /opt/node-makemkv || exit; \
npm install ./; \
\
mv /opt/node-makemkv/settings.example.json /opt/node-makemkv/settings.json; \
mv /opt/node-makemkv/conversion_profile.example.xml /opt/node-makemkv/conversion_profile.xml; \
\
rm -rf /var/lib/apt/lists/*; \
apt-get purge -y --auto-remove $buildDeps;
COPY entrypoint.d/ /entrypoint.d/
WORKDIR /opt/node-makemkv
VOLUME ["/var/done"]
EXPOSE 80
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/usr/bin/coffee", "/opt/node-makemkv/server.coffee"]