diff --git a/Dockerfile.buildenv b/Dockerfile.buildenv index cb3b6c3a9d..904948aaf1 100644 --- a/Dockerfile.buildenv +++ b/Dockerfile.buildenv @@ -12,12 +12,18 @@ RUN dpkg --add-architecture i386 && apt-get update && apt-get -y install \ libqt5x11extras5-dev \ qtbase5-dev \ qt6-base-dev \ + unzip \ wget SHELL ["/bin/bash", "-c"] -# install compilers -RUN tarballs=( \ +# install compilers, but first save (to root directory for simplicity) docs archive for stable FPC (needed to build Lazarus docs) +RUN docarchive=doc-chm.zip; \ + wget --no-verbose --output-document=/$docarchive https://downloads.freepascal.org/fpc/dist/$FPC_STABLE_VER/docs/$docarchive; \ + if [ ! -f /$docarchive ]; then \ + exit 1; \ + fi; \ + tarballs=( \ "https://sourceforge.net/projects/freepascal/files/Linux/$FPC_OLDSTABLE_VER/fpc-$FPC_OLDSTABLE_VER-x86_64-linux.tar fpc-$FPC_OLDSTABLE_VER-x86_64-linux" \ "https://sourceforge.net/projects/freepascal/files/Linux/$FPC_STABLE_VER/fpc-$FPC_STABLE_VER.x86_64-linux.tar fpc-$FPC_STABLE_VER.x86_64-linux" \ "https://gitlab.com/freepascal.org/fpc/build/-/jobs/artifacts/fixes_3_2/raw/fpc-$FPC_FIXES_VER.x86_64-linux.tar?job=build-job fpc-$FPC_FIXES_VER.x86_64-linux" \