-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
52 lines (44 loc) · 1.6 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
# Initial Docker file was taken from : https://hub.docker.com/r/manujbhatia/deepspeech/
FROM ubuntu:16.04
ENV GIT_LFS_VER=2.1.1
WORKDIR /tmp
## Install the basic things
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
curl \
git \
python-pip \
python-dev \
python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose \
&& apt-get install -y \
build-essential \
libssl-dev \
libffi-dev \
wget \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
## Install git-lfs
RUN curl -L https://github.com/git-lfs/git-lfs/releases/download/v$GIT_LFS_VER/git-lfs-linux-amd64-$GIT_LFS_VER.tar.gz \
| tar xvzf - \
&& git-lfs-$GIT_LFS_VER/install.sh \
&& rm -rf git-lfs-$GIT_LFS_VER
## Install all the python packages
RUN pip install --upgrade pip \
&& pip install --upgrade \
setuptools \
&& pip install --upgrade \
# tensorflow==1.3.0 \
https://index.taskcluster.net/v1/task/project.deepspeech.tensorflow.pip.master.cpu/artifacts/public/tensorflow_warpctc-1.3.0rc0-cp27-cp27mu-linux_x86_64.whl \
pyxdg \
python_speech_features \
sox \
pandas
WORKDIR /work/
RUN git clone https://github.com/mozilla/DeepSpeech \
&& cd DeepSpeech \
&& pip install -r requirements.txt
RUN wget https://index.taskcluster.net/v1/task/project.deepspeech.deepspeech.native_client.master.cpu/artifacts/public/native_client.tar.xz -P /tmp \
&& cd /tmp \
&& tar -xJvf native_client.tar.xz \
&& cp -r *.so /work/DeepSpeech/native_client/
WORKDIR DeepSpeech