| 1 |
# |
| 2 |
# Dockerfile for the link-grammar parser. |
| 3 |
# Allows one to just build and compile the command-line tool, |
| 4 |
# and so perform general experimentation. |
| 5 |
# |
| 6 |
FROM linkgrammar/lgbase:latest |
| 7 |
MAINTAINER Linas Vepstas [email protected] |
| 8 |
|
| 9 |
# Build the libraries and command-line parser only |
| 10 |
# Assumes that the sources have already been unpacked. |
| 11 |
RUN (cd link-grammar-5*; mkdir build; cd build; ../configure --disable-java-bindings; make -j12; make install; ldconfig) |
| 12 |
|
| 13 |
RUN adduser --disabled-password --gecos "Link Parser User" link-parser |
| 14 |
|
| 15 |
USER link-parser |
| 16 |
WORKDIR /home/link-parser |
| 17 |
RUN echo "export LANG=en_US.UTF-8" >> .bash_aliases |
| 18 |
CMD bash |
| 19 |
|
| 20 |
RUN export LANG=en_US.UTF-8 |
| 21 |
|
| 22 |
RUN echo "this is a test" | link-parser |
| 23 |
# |
| 24 |
|