| 1 |
# |
| 2 |
# Dockerfile for the basic link-grammar source download. |
| 3 |
# No compilation is performed. |
| 4 |
# |
| 5 |
FROM ubuntu:focal |
| 6 |
ARG DEBIAN_FRONTEND=noninteractive |
| 7 |
MAINTAINER Linas Vepstas [email protected] |
| 8 |
|
| 9 |
RUN apt-get update |
| 10 |
RUN apt-get -y install apt-utils |
| 11 |
RUN apt-get -y install gcc g++ make |
| 12 |
|
| 13 |
# Need wget to download link-grammar source |
| 14 |
RUN apt-get -y install wget |
| 15 |
|
| 16 |
# Download the current released version of link-grammar. |
| 17 |
# RUN http://www.abisource.com/downloads/link-grammar/current/link-grammar-5*.tar.gz |
| 18 |
# The wget tries to guess the correct file to download w/ wildcard |
| 19 |
RUN wget -r --no-parent -nH --cut-dirs=2 http://www.abisource.com/downloads/link-grammar/current/ |
| 20 |
|
| 21 |
# Unpack the sources, too. |
| 22 |
RUN tar -zxf current/link-grammar-5*.tar.gz |
| 23 |
|
| 24 |
# Need the locales for utf8 |
| 25 |
RUN apt-get install locales |
| 26 |
RUN (echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \ |
| 27 |
echo "ru_RU.UTF-8 UTF-8" >> /etc/locale.gen && \ |
| 28 |
echo "he_IL.UTF-8 UTF-8" >> /etc/locale.gen && \ |
| 29 |
echo "de_DE.UTF-8 UTF-8" >> /etc/locale.gen && \ |
| 30 |
echo "lt_LT.UTF-8 UTF-8" >> /etc/locale.gen && \ |
| 31 |
echo "fa_IR.UTF-8 UTF-8" >> /etc/locale.gen && \ |
| 32 |
echo "ar_AE.UTF-8 UTF-8" >> /etc/locale.gen && \ |
| 33 |
echo "kk_KZ.UTF-8 UTF-8" >> /etc/locale.gen && \ |
| 34 |
echo "tr_TR.UTF-8 UTF-8" >> /etc/locale.gen && \ |
| 35 |
echo "th_TH.UTF-8 UTF-8" >> /etc/locale.gen) |
| 36 |
|
| 37 |
# WTF. In debian wheezy, it is enough to just say locale-gen without |
| 38 |
# any arguments. But in trusty, we eneed to be explicit. I'm confused. |
| 39 |
# RUN locale-gen |
| 40 |
# Note also: under trusty, fa_IR.UTF-8 causes locale-gen to fail, |
| 41 |
# must use the naked fa_IR |
| 42 |
# Note also: Kazakh is kk_KZ not kz_KZ |
| 43 |
RUN locale-gen en_US.UTF-8 ru_RU.UTF-8 he_IL.UTF-8 de_DE.UTF-8 lt_LT.UTF-8 fa_IR ar_AE.UTF-8 kk_KZ.UTF-8 tr_TR.UTF-8 th_TH.UTF-8 |