FROM debian:bookworm@sha256:b5fd0730c71f88a75e9d95dc6d812e8c34db679b3f009903d917be8f0300ba13 AS builder LABEL maintainer="Liblouis Maintainers " # Fetch build dependencies RUN apt-get update && apt-get install -y \ autoconf \ automake \ curl \ libtool \ make \ mingw-w64 \ pkg-config \ texinfo \ wine64 \ zip \ patch \ && rm -rf /var/lib/apt/lists/* ARG LIBYAML_VERSION=0.1.4 ENV HOST=x86_64-w64-mingw32 PREFIX=/usr/build/win64 SRCDIR=/usr/src/ # Build and install libyaml WORKDIR ${SRCDIR} RUN curl -L https://github.com/yaml/libyaml/archive/${LIBYAML_VERSION}.tar.gz | tar zx WORKDIR ${SRCDIR}/libyaml-${LIBYAML_VERSION} # Unfortunately we need to apply a patch to version 0.1.4 of libyaml. But regretfully we # depend on 0.1.4 to have a statically linked version of libyaml. With newer versions of # liblouis we haven't managed to produce a self-contained lou_checkyaml.exe so far. ADD libyaml_mingw.patch . RUN patch -p1