forked from vchahun/pyfst
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
37 lines (26 loc) · 1015 Bytes
/
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
FROM ubuntu:16.04
RUN apt-get update
RUN apt-get install -y build-essential libatlas-base-dev python-dev python-pip git automake autoconf libtool
RUN apt-get install -y wget
RUN apt-get install -y mc
RUN apt-get install -y graphviz
RUN pip2 install jupyter
RUN wget http://www.openfst.org/twiki/pub/FST/FstDownload/openfst-1.3.4.tar.gz
RUN tar -zxvf openfst-1.3.4.tar.gz
RUN wget https://raw.githubusercontent.com/kaldi-asr/kaldi/master/tools/extras/openfst-1.3.4.patch
RUN cd openfst-1.3.4/src/include/fst; \
patch -c -p0 -N < /openfst-1.3.4.patch
RUN cd openfst-1.3.4; \
./configure --prefix=`pwd` --enable-static --with-pic --enable-shared --enable-far --enable-ngram-fsts; \
make -j 4; \
make install
COPY . /pyfst
WORKDIR /pyfst
RUN pip install -r requirements.txt
ENV FST=/openfst-1.3.4
ENV LD_LIBRARY_PATH=$FST/lib:$FST/lib/fst:$LD_LIBRARY_PATH
ENV LIBRARY_PATH=$FST/lib:$FST/lib/fst
ENV CPLUS_INCLUDE_PATH=$FST/include
RUN python setup.py install
WORKDIR /
VOLUME /pyfst/notebooks