-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (21 loc) · 830 Bytes
/
Copy pathDockerfile
File metadata and controls
24 lines (21 loc) · 830 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
FROM ubuntu:14.04
MAINTAINER marcosvanetta@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
WORKDIR /tmp
RUN wget https://s3.amazonaws.com/src.codingnews.info/freeling-3.1.tar.gz
RUN tar xvzf freeling-3.1.tar.gz
ADD automake_options.am /tmp/freeling-3.1/src/
WORKDIR /tmp/freeling-3.1
RUN aclocal; libtoolize; autoconf; automake -a
RUN ./configure
RUN make
RUN make install
RUN rm -rf /tmp/freeling-3.1
EXPOSE 50005
ENV FREELINGSHARE /usr/local/share/freeling
CMD echo 'Hello world' | analyze -f $FREELINGSHARE/config/en.cfg | grep -c 'world world NN 1'