summaryrefslogtreecommitdiff
path: root/docker/compile-and-check/base/Dockerfile
blob: 0d6fc349acb7796721a253404fcc18767a4bac80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM debian:experimental
RUN apt-get update

RUN apt-get install -y autoconf autopoint libtool texinfo \
  libgcrypt-dev libidn11-dev zlib1g-dev libunistring-dev \
  libjansson-dev python3-pip git recutils libsqlite3-dev \
  libpq-dev postgresql libcurl4-openssl-dev libsodium-dev git \
  libqrencode-dev zip jq npm openjdk-17-jre nginx procps \
  curl python3-jinja2 wget curl python3-sphinx socat apache2-utils \
  python3-sphinx-rtd-theme sqlite3 vim emacs
RUN pip3 install requests click poetry uwsgi htmlark

ARG tags_file
# The following command provides a conditional copy from
# the host filesystem.  It mounts the current directory -
# where the tags file MIGHT be - to /context in the container.
# It appears NOT possible to mount arbitrary paths from the
# host with "RUN --mount".  Hence, when a tags file is given,
# the CWD has to be the one containing the tags file.  build_base.sh
# sets (1) the CWD this way and (2) $tags_file to be the tags file
# basename, before starting the compilation.
RUN --mount=target=/context if test -n "$tags_file"; then cp \
/context/${tags_file} /tags.sh; else touch /tags.sh; fi
RUN chmod +x /tags.sh
COPY ./compile_and_check.sh /
ENTRYPOINT /compile_and_check.sh