-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
Dockerfile
50 lines (39 loc) · 1.58 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
FROM python:3.7
FROM ubuntu:18.04
MAINTAINER fnndsc "[email protected]"
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
RUN apt-get update && apt-get install -y python3-pip \
&& apt-get install -y wget \
&& apt-get install -y automake --upgrade \
&& apt-get install -y libtool --upgrade \
&& apt-get -y install ffmpeg \
&& apt-get install -y lsb-core \
&& apt-get install -y libavcodec-dev \
&& apt-get install -y libavformat-dev \
&& apt-get install -y libavdevice-dev \
&& apt-get install -y libboost-all-dev \
&& apt-get install -y git \
&& apt-get install -y sox
RUN ln -sfn /usr/bin/pip3 /usr/bin/pip
COPY . /app
#cloning openface
WORKDIR /app/opendbm/pkg
RUN git clone https://github.com/AiCure/open_dbm.git -b openface
RUN echo "Installing OpenFace..."
WORKDIR /app/opendbm/pkg/open_dbm/OpenFace
RUN bash ./download_models.sh
RUN dpkg --configure -a
RUN su -c ./install.sh
RUN echo "Done OpenFace!"
RUN echo "Cloning DeepSpeech..."
WORKDIR /app/opendbm/pkg
RUN git clone https://github.com/mozilla/DeepSpeech.git
WORKDIR /app/opendbm/pkg/DeepSpeech
RUN wget https://github.com/mozilla/DeepSpeech/releases/download/v0.9.1/deepspeech-0.9.1-models.pbmm
RUN wget https://github.com/mozilla/DeepSpeech/releases/download/v0.9.1/deepspeech-0.9.1-models.scorer
WORKDIR /app
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
RUN echo "Requirement txt done!"
CMD [ "python", "./process_data.py" ]