Christian Egli | 4539213 | 2015-09-03 23:42:20 +0200 | [diff] [blame] | 1 | FROM debian:jessie |
| 2 | |
Christian Egli | 96d527a | 2017-09-20 15:48:43 +0200 | [diff] [blame] | 3 | LABEL maintainer="Liblouis Maintainers <liblouis-liblouisxml@freelists.org>" |
Bert Frees | 736df4f | 2015-01-08 16:04:21 +0100 | [diff] [blame] | 4 | |
Christian Egli | 96d527a | 2017-09-20 15:48:43 +0200 | [diff] [blame] | 5 | # Fetch build dependencies |
| 6 | RUN 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 Frees | 736df4f | 2015-01-08 16:04:21 +0100 | [diff] [blame] | 17 | |
Bert Frees | d51268a | 2015-11-15 17:23:45 +0100 | [diff] [blame] | 18 | # compile and install liblouis |
Christian Egli | 96d527a | 2017-09-20 15:48:43 +0200 | [diff] [blame] | 19 | ADD . /usr/src/liblouis |
| 20 | WORKDIR /usr/src/liblouis |
| 21 | RUN ./autogen.sh && ./configure --enable-ucs4 && make && make install && ldconfig |
Bert Frees | d51268a | 2015-11-15 17:23:45 +0100 | [diff] [blame] | 22 | |
| 23 | # install python bindings |
Christian Egli | 96d527a | 2017-09-20 15:48:43 +0200 | [diff] [blame] | 24 | WORKDIR /usr/src/liblouis/python |
Bert Frees | d51268a | 2015-11-15 17:23:45 +0100 | [diff] [blame] | 25 | RUN python setup.py install |
| 26 | |
| 27 | # clean up |
| 28 | WORKDIR /root |
Christian Egli | 96d527a | 2017-09-20 15:48:43 +0200 | [diff] [blame] | 29 | RUN rm -rf /usr/src/liblouis |