| 1 |
ARG IMAGE=ubuntu |
| 2 |
FROM ${IMAGE} |
| 3 |
# install build dependencies |
| 4 |
RUN apt-get update -qq |
| 5 |
RUN apt-get install --no-install-recommends --fix-missing -y \ |
| 6 |
gcc autoconf automake libtool git make libyaml-dev libltdl-dev \ |
| 7 |
pkg-config check python3 python3-pip python3-setuptools \ |
| 8 |
devscripts build-essential lintian debhelper dh-autoreconf fakeroot \ |
| 9 |
gnupg |
| 10 |
# install sphinx doc dependencies |
| 11 |
RUN pip3 install wheel sphinx git+http://github.com/return42/linuxdoc.git sphinx_rtd_theme sphinx-markdown-builder |
| 12 |
# configure argument |
| 13 |
ARG CONFIG_ARGS |
| 14 |
ENV CONFIG_ARGS=${CONFIG_ARGS} |
| 15 |
COPY . /build |
| 16 |
WORKDIR /build |
| 17 |
# do a maintainer clean if the directory was unclean (it can fail) |
| 18 |
RUN make maintainer-clean >/dev/null 2>&1|| true |
| 19 |
RUN ./bootstrap.sh 2>&1 |
| 20 |
RUN ./configure 2>&1 ${CONFIG_ARGS} |
| 21 |
RUN make deb |