forked from liblouis/liblouis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the Dockerfile according to best practices
- Loading branch information
Showing
1 changed file
with
19 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,29 @@ | ||
FROM debian:jessie | ||
|
||
MAINTAINER Liblouis Maintainers "[email protected]" | ||
|
||
# developer environment | ||
RUN apt-get update | ||
RUN apt-get install -y make autoconf automake libtool pkg-config | ||
|
||
# for python bindings | ||
RUN apt-get install -y python | ||
|
||
# for documentation | ||
RUN apt-get install -y texinfo | ||
|
||
# for tests | ||
RUN apt-get install -y libyaml-dev | ||
LABEL maintainer="Liblouis Maintainers <[email protected]>" | ||
|
||
# Fetch build dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
autoconf \ | ||
automake \ | ||
curl \ | ||
libtool \ | ||
libyaml-dev \ | ||
make \ | ||
pkg-config \ | ||
python \ | ||
texinfo \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# compile and install liblouis | ||
ADD . /tmp/liblouis | ||
WORKDIR /tmp/liblouis | ||
RUN ./autogen.sh | ||
RUN ./configure --enable-ucs4 | ||
RUN make | ||
RUN make install | ||
RUN ldconfig | ||
ADD . /usr/src/liblouis | ||
WORKDIR /usr/src/liblouis | ||
RUN ./autogen.sh && ./configure --enable-ucs4 && make && make install && ldconfig | ||
|
||
# install python bindings | ||
WORKDIR /tmp/liblouis/python | ||
WORKDIR /usr/src/liblouis/python | ||
RUN python setup.py install | ||
|
||
# clean up | ||
WORKDIR /root | ||
RUN rm -rf /tmp/liblouis | ||
RUN rm -rf /usr/src/liblouis |