forked from Parisson/TimeSide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
71 lines (55 loc) · 2.05 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
# Copyright 2013 Thatcher Peskens
# Copyright 2015, 2017 Guillaume Pellerin, Thomas Fillon
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
FROM debian:buster
MAINTAINER Guillaume Pellerin <[email protected]>
RUN mkdir -p /srv/lib
RUN mkdir -p /srv/lib/timeside
WORKDIR /srv/lib
# install confs, keys and deps
RUN apt-get update && apt-get install -y apt-transport-https
COPY requirements-debian.txt /srv/lib/
RUN apt-get update && \
DEBIAN_PACKAGES=$(egrep -v "^\s*(#|$)" requirements-debian.txt) && \
apt-get install -y --force-yes $DEBIAN_PACKAGES && \
apt-get clean
ENV PYTHON_EGG_CACHE=/srv/.python-eggs
RUN mkdir -p $PYTHON_EGG_CACHE && \
chown www-data:www-data $PYTHON_EGG_CACHE
RUN pip3 install -U setuptools pip numpy
RUN apt-get remove -y python3-yaml
# Install timeside
WORKDIR /srv/lib/timeside
COPY ./requirements.txt /srv/lib/timeside/
RUN pip3 install -r requirements.txt
# Install app
COPY ./app /srv/app
# Install Timeside plugins from ./lib
RUN mkdir -p /srv/lib/plugins
COPY ./lib/plugins/ /srv/lib/plugins/
RUN /bin/bash /srv/app/bin/setup_plugins.sh
# Link python gstreamer
RUN python3 /srv/app/bin/link_gstreamer.py
# Install Vamp plugins
RUN /bin/bash /srv/app/bin/install_vamp_plugins.sh
COPY ./README.rst /srv/lib/timeside/
COPY ./LICENSE.txt /srv/lib/timeside/
COPY ./setup.py /srv/lib/timeside/
COPY ./docs /srv/lib/timeside/docs/
COPY ./tests /srv/lib/timeside/tests/
COPY ./bin /srv/lib/timeside/bin/
COPY ./timeside /srv/lib/timeside/timeside/
RUN pip3 install -e .
RUN export PYTHONPATH=/srv/lib/timeside:/srv/app
WORKDIR /srv/app