1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03:00
libxml2/.gitlab-ci/Dockerfile
2024-07-04 15:47:49 +02:00

33 lines
1.1 KiB
Docker

# The image is also used for libxslt, that's why we need git and
# libgcrypt-dev.
FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
curl git ca-certificates \
autoconf automake libtool pkg-config \
make gcc clang llvm libclang-rt-dev \
zlib1g-dev liblzma-dev libgcrypt-dev \
python3-dev \
cmake meson
WORKDIR /tests
RUN curl https://www.w3.org/XML/Test/xmlts20080827.tar.gz |tar xz
# XML::LibXML uses Alien::Libxml2 which has a huge dependency chain.
# We try to install most dependencies with apt. We also require
# libxml2-dev to stop Alien::Libxml2 from downloading and building
# libxml2 on its own.
RUN apt-get install -y --no-install-recommends \
libperl-dev libxml2-dev cpanminus \
libalien-build-perl \
libio-socket-ssl-perl \
libsort-versions-perl \
liburi-perl \
libxml-namespacesupport-perl \
libxml-sax-perl \
libyaml-perl
RUN cpanm -n Alien::Libxml2
RUN apt-get remove -y libxml2-dev