blob: a05410f02994fca1efbebf3901933f900c56c92a [file] [log] [blame]
Christian Egli45392132015-09-03 23:42:20 +02001FROM debian:jessie
2
Christian Egli96d527a2017-09-20 15:48:43 +02003LABEL maintainer="Liblouis Maintainers <liblouis-liblouisxml@freelists.org>"
Bert Frees736df4f2015-01-08 16:04:21 +01004
Christian Egli96d527a2017-09-20 15:48:43 +02005# Fetch build dependencies
6RUN apt-get update && apt-get install -y \
7 autoconf \
8 automake \
9 curl \
10 libtool \
11 libyaml-dev \
12 make \
13 pkg-config \
14 python \
15 texinfo \
16 && rm -rf /var/lib/apt/lists/*
Bert Frees736df4f2015-01-08 16:04:21 +010017
Bert Freesd51268a2015-11-15 17:23:45 +010018# compile and install liblouis
Christian Egli96d527a2017-09-20 15:48:43 +020019ADD . /usr/src/liblouis
20WORKDIR /usr/src/liblouis
21RUN ./autogen.sh && ./configure --enable-ucs4 && make && make install && ldconfig
Bert Freesd51268a2015-11-15 17:23:45 +010022
23# install python bindings
Christian Egli96d527a2017-09-20 15:48:43 +020024WORKDIR /usr/src/liblouis/python
Bert Freesd51268a2015-11-15 17:23:45 +010025RUN python setup.py install
26
27# clean up
28WORKDIR /root
Christian Egli96d527a2017-09-20 15:48:43 +020029RUN rm -rf /usr/src/liblouis