This repository was archived by the owner on Aug 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (30 loc) · 1.23 KB
/
Dockerfile
File metadata and controls
39 lines (30 loc) · 1.23 KB
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
FROM ubuntu:14.04
MAINTAINER Sergiu Nisioi <sergiu.nisioi@gmail.com>
RUN apt-get update && apt-get install -y \
build-essential \
python-dev \
python-pip \
wget \
curl \
git \
software-properties-common
RUN curl -s https://raw.githubusercontent.com/torch/ezinstall/master/install-deps | bash -e
RUN git clone https://github.com/torch/distro.git ~/torch --recursive
RUN cd ~/torch && ./install.sh && \
cd install/bin && \
./luarocks install nn && \
./luarocks install tds
RUN apt-get install -y uuid-dev
RUN cd ~ && wget https://github.com/zeromq/zeromq2-x/releases/download/v2.1.11/zeromq-2.1.11.tar.gz && \
tar -xvf zeromq-2.1.11.tar.gz && cd zeromq-2.1.11 && \
./configure && make && \
make install && sudo ldconfig
RUN cd ~/torch/install/bin && ./luarocks install lua-zmq ZEROMQ_LIBDIR=/usr/local/lib ZEROMQ_INCDIR=/usr/local/include
RUN cd ~/torch/install/bin ./luarocks install restserver-xavante
RUN cd ~/torch/install/bin ./luarocks install dkjson
RUN cd ~ && \
git clone --recursive https://github.com/senisioi/NeuralTextSimplification.git && \
cd ./NeuralTextSimplification && \
pip install -r src/requirements.txt && \
python src/download_models.py ./models
EXPOSE 5556