File: Dockerfile

package info (click to toggle)
link-grammar 5.13.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 28,976 kB
  • sloc: ansic: 33,079; asm: 12,105; cpp: 7,671; perl: 1,878; python: 1,839; makefile: 1,423; java: 1,275; yacc: 805; lisp: 640; lex: 317; sh: 267; ml: 249; haskell: 51; sql: 47; javascript: 45; tcl: 3
file content (24 lines) | stat: -rw-r--r-- 866 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#
# Experimental dockerfile for link-grammar python bindings.
#
# XXX TODO: actually run the python unit tests!
#
FROM linkgrammar/lgbase:latest
MAINTAINER Linas Vepstas linasvepstas@gmail.com

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/*

# Perform the standard build.
RUN (cd link-grammar-5*; mkdir build; cd build; ../configure --disable-java-bindings --enable-python-bindings; make -j12; make install; ldconfig)

RUN adduser --disabled-password --gecos "Link Parser User" link-parser

USER link-parser
WORKDIR /home/link-parser
RUN echo "export LANG=en_US.UTF-8" >> .bash_aliases
CMD bash

RUN export LANG=en_US.UTF-8

RUN echo "this is a test" | link-parser