File tree Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Original file line number Diff line number Diff line change 1
1
FROM ubuntu
2
-
2
+ ENV DEBIAN_FRONTEND noninteractive
3
3
4
4
# Installing build dependencies
5
5
RUN apt-get update && apt-get install -y build-essential automake make cmake g++ wget git mercurial python3-pip curl
@@ -15,17 +15,7 @@ RUN wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCT
15
15
apt-get install -y intel-mkl-64bit-2018.2-046
16
16
17
17
# Installing DyNET
18
- RUN mkdir dynet-base && \
19
- cd dynet-base && \
20
- git clone https://github.com/clab/dynet.git && \
21
- hg clone https://bitbucket.org/eigen/eigen -r b2e267d && \
22
- cd dynet && \
23
- mkdir build && \
24
- cd build && \
25
- cmake .. -DEIGEN3_INCLUDE_DIR=../../eigen -DPYTHON=/usr/bin/python3 -DMKL_ROOT=/opt/intel/mkl && \
26
- make -j 2 && \
27
- cd python && \
28
- python3 ../../setup.py build --build-dir=.. --skip-build install
18
+ RUN pip3 install dynet
29
19
30
20
# Prepare environment UTF-8
31
21
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y locales
@@ -43,7 +33,9 @@ RUN mkdir /work && \
43
33
44
34
# Prepare notebook
45
35
RUN pip3 install jupyter
36
+ RUN pip3 install Flask
37
+ RUN pip3 install bs4
46
38
47
- # Start notebook
48
- CMD cd /work/NLP-Cube/ && python3 -m "notebook" --allow-root --ip=0.0.0.0 --no-browser
39
+ # Start webserver
40
+ CMD cd /work/NLP-Cube/cube/ && python3 webserver.py --port 8080 --lang=en --lang=fr --lang=de
49
41
You can’t perform that action at this time.
0 commit comments