-
Notifications
You must be signed in to change notification settings - Fork 17
/
Dockerfile
25 lines (19 loc) · 1.07 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
FROM phusion/baseimage:0.10.1
RUN install_clean git scons build-essential libao4 libao-dev pkg-config flite1-dev libao-dev portaudio19-dev lame python3 python3-pip python3-setuptools locales locales-all && \
git clone https://github.com/Olga-Yakovleva/RHVoice.git /opt/RHVoice && \
cd /opt/RHVoice && git checkout ee8be30 && scons && scons install && ldconfig && \
git clone https://github.com/vantu5z/RHVoice-dictionary.git /opt/RHVoice-dictionary && \
mkdir -p /usr/local/etc/RHVoice/dicts/Russian/ && \
mkdir -p /opt/data && \
cp /opt/RHVoice-dictionary/*.txt /usr/local/etc/RHVoice/dicts/Russian/ && \
cp -R /opt/RHVoice-dictionary/tools /opt/ && \
pip3 install flask pymorphy2 && \
cd /opt && rm -rf /opt/RHVoice && \
apt-get purge -y build-essential scons pkg-config binutils bzip2 cpp cpp-5 dpkg-dev g++ g++-5 gcc gcc-5 libdpkg-perl libgcc-5-dev libstdc++-5-dev make uuid-dev
ENV LC_ALL ru_RU.UTF-8
ENV LANG ru_RU.UTF-8
ENV LANGUAGE ru_RU.UTF-8
ADD app.py /opt/app.py
EXPOSE 8080/tcp
VOLUME ["/usr/local/etc/RHVoice"]
CMD python3 /opt/app.py