-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
45 lines (35 loc) · 785 Bytes
/
Dockerfile
File metadata and controls
45 lines (35 loc) · 785 Bytes
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
FROM golbin/kaldi:latest
ENV build_date 2018-09-19 001
RUN apt-get update -y
RUN apt-get install -y zlib1g \
make \
automake \
autoconf \
sox \
subversion \
python3 \
zlib1g-dev \
python \
unzip \
libtool \
g++ \
git \
bash \
libfcgi \
libfcgi-dev \
spawn-fcgi \
wget \
nginx
WORKDIR /home
RUN git clone https://github.com/api-ai/asr-server asr-server
RUN wget https://github.com/api-ai/api-ai-english-asr-model/releases/download/1.0/api.ai-kaldi-asr-model.zip
RUN unzip api.ai-kaldi-asr-model.zip
COPY nginx.conf /etc/nginx/
RUN update-rc.d nginx defaults
WORKDIR /home/asr-server
RUN /home/asr-server/configure
RUN make 1> /dev/null
COPY run.sh /run.sh
RUN chmod +x /run.sh
EXPOSE 80 9000
CMD /run.sh