Debian Codegraph @

Dockerfile

raw
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 -y \
6 gcc autoconf automake libtool git make libyaml-dev libltdl-dev \
7 pkg-config check python3 python3-pip python3-setuptools
8 # install sphinx doc dependencies globally (without venv)
9 RUN pip3 install --break-system-packages wheel sphinx git+http://github.com/return42/linuxdoc.git sphinx_rtd_theme sphinx-markdown-builder
10 # configure argument
11 ARG CONFIG_ARGS
12 ENV CONFIG_ARGS=${CONFIG_ARGS:-"--enable-debug --prefix=/usr"}
13 COPY . /build
14 WORKDIR /build
15 # do a maintainer clean if the directory was unclean (it can fail)
16 RUN make maintainer-clean >/dev/null 2>&1|| true
17 RUN ./bootstrap.sh 2>&1
18 RUN ./configure 2>&1 ${CONFIG_ARGS}
19 RUN make
20 RUN make check
21 RUN make distcheck
22 RUN make doc-html