| 1 |
# |
| 2 |
# Experimental dockerfile for link-grammar python bindings. |
| 3 |
# |
| 4 |
# XXX TODO: actually run the python unit tests! |
| 5 |
# |
| 6 |
FROM linkgrammar/lgbase:latest |
| 7 |
MAINTAINER Linas Vepstas [email protected] |
| 8 |
|
| 9 |
RUN apt-get update && apt-get install git build-essential python3-dev libpcre2-dev python-is-python3 libtre-dev wget automake locales libtool flex m4 autoconf-archive autoconf pkg-config swig libthai-dev help2man -y && rm -rf /var/lib/apt/lists/* |
| 10 |
|
| 11 |
# Perform the standard build. |
| 12 |
RUN (cd link-grammar-5*; mkdir build; cd build; ../configure --disable-java-bindings --enable-python-bindings; make -j12; make install; ldconfig) |
| 13 |
|
| 14 |
RUN adduser --disabled-password --gecos "Link Parser User" link-parser |
| 15 |
|
| 16 |
USER link-parser |
| 17 |
WORKDIR /home/link-parser |
| 18 |
RUN echo "export LANG=en_US.UTF-8" >> .bash_aliases |
| 19 |
CMD bash |
| 20 |
|
| 21 |
RUN export LANG=en_US.UTF-8 |
| 22 |
|
| 23 |
RUN echo "this is a test" | link-parser |
| 24 |
|