forked from malev/docker-freeling
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (24 loc) · 907 Bytes
/
Copy pathDockerfile
File metadata and controls
28 lines (24 loc) · 907 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
FROM ubuntu:14.04
MAINTAINER william.k.krause@gmail.com
RUN locale-gen en_US.UTF-8
RUN apt-get update -q
RUN apt-get install -y build-essential libicu-dev libboost1.54-all-dev\
libboost-regex1.54-dev libboost-regex-dev libboost-system-dev\
libboost-program-options-dev libboost-thread-dev zlib1g-dev\
automake autoconf libtool wget python3-dev swig
WORKDIR /tmp
RUN wget https://s3.amazonaws.com/freeling.image.31/freeling-3.1.source.tar.gz
RUN mkdir /tmp/freeling-3.1
RUN tar xvzf freeling-3.1.source.tar.gz -C /tmp/freeling-3.1
WORKDIR /tmp/freeling-3.1
RUN autoreconf --install
RUN ./configure
RUN make
RUN make install
WORKDIR /tmp/freeling-3.1/APIs/python
RUN ls -la
RUN make
RUN rm -rf /tmp/freeling-3.1.source
EXPOSE 50005
ENV FREELINGSHARE /usr/local/share/freeling
CMD echo 'Hola amigo' | analyze -f $FREELINGSHARE/config/es.cfg | grep -c 'world world NN 1'