-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
93 lines (84 loc) · 2.57 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
FROM ubuntu:18.04
MAINTAINER DocMarty84 <[email protected]>
# Reconfigure locales to use UTF-8 encoding
RUN set -x; \
apt-get update -qq && \
apt-get install -y --no-install-recommends -qq locales
RUN set -x; \
dpkg-reconfigure -fnoninteractive locales && \
sed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/g' /etc/locale.gen && \
locale-gen en_US.UTF-8 && \
/usr/sbin/update-locale LANG=en_US.UTF-8
ENV LC_ALL en_US.UTF-8
# Install apt dependencies
ARG DEBIAN_FRONTEND=noninteractive
RUN set -x; \
apt-get install -y --no-install-recommends -qq \
adduser \
build-essential \
libtag1-dev \
lsb-base \
mediainfo \
python3-babel \
python3-chardet \
python3-dateutil \
python3-decorator \
python3-dev \
python3-docutils \
python3-feedparser \
python3-gevent \
python3-html2text \
python3-jinja2 \
python3-libsass \
python3-lxml \
python3-mako \
python3-mock \
python3-passlib \
python3-pil \
python3-pip \
python3-psutil \
python3-psycopg2 \
python3-pydot \
python3-pyldap \
python3-pyparsing \
python3-pypdf2 \
python3-qrcode \
python3-reportlab \
python3-requests \
python3-setuptools \
python3-suds \
python3-tz \
python3-vatnumber \
python3-vobject \
python3-werkzeug \
python3-wheel \
python3-xlsxwriter \
python3-yaml \
wget && \
apt-get clean -qq
# Install pip dependencies
RUN set -x; \
pip3 install \
mutagen==1.41.1 \
pytaglib==1.4.4 \
num2words==0.5.6
# Set up user and mount point
RUN set -x; \
useradd -m koozic && \
mkdir -p /mnt/host && \
chown -R koozic /mnt/host
# Install KooZic
RUN set -x; \
v=v2.0.0 && \
wget -q https://github.com/DocMarty84/koozic/releases/download/${v}/koozic-${v}.tar.gz && \
tar xfz koozic-*.tar.gz && \
rm -rf koozic-*.tar.gz
RUN set -x; \
tar xfz koozic/extra/ffmpeg/ffmpeg-*-64bit.tar.gz -C /usr/local/bin && \
mv koozic /usr/local/ && \
chown -R koozic /usr/local/koozic
# Copy entrypoint script
COPY ./entrypoint.sh /
# Expose KooZic services
EXPOSE 8069 8072
ENTRYPOINT ["/entrypoint.sh"]