11FROM snapcore/snapcraft AS snapcraft
22# Using multi-stage dockerfile to obtain snapcraft binary
33
4- FROM ubuntu:bionic AS flutterbuilder
4+ FROM ubuntu:groovy AS flutterbuilder
55RUN apt-get update \
66 && apt-get install -y \
77 git curl unzip
88# Install Flutter from the beta channel
99RUN git clone --single-branch --depth=1 --branch beta https://github.com/flutter/flutter /opt/flutter 2>&1 \
1010 && /opt/flutter/bin/flutter doctor -v
1111
12- FROM ubuntu:bionic AS xarbuilder
12+ FROM ubuntu:groovy AS xarbuilder
1313RUN apt-get update \
1414 && apt-get install -y \
15- git libssl1.0-dev libxml2-dev make g++ autoconf
15+ git libssl-dev libxml2-dev make g++ autoconf zlib1g-dev
16+ # Needed to patch configure.ac per https://github.com/mackyle/xar/issues/18
1617RUN git clone --single-branch --depth=1 --branch xar-1.6.1 https://github.com/mackyle/xar 2>&1 \
1718 && cd xar/xar \
19+ && sed -i "s/AC_CHECK_LIB(\[ crypto\] , \[ OpenSSL_add_all_ciphers\] , , \[ have_libcrypto=\" 0\"\] )/AC_CHECK_LIB(\[ crypto\] , \[ OPENSSL_init_crypto\] , , \[ have_libcrypto=\" 0\"\] )/" configure.ac \
1820 && ./autogen.sh --noconfigure \
1921 && ./configure 2>&1 \
2022 && make 2>&1 \
2123 && make install 2>&1
2224
23- FROM ubuntu:bionic AS bomutilsbuilder
25+ FROM ubuntu:groovy AS bomutilsbuilder
2426RUN apt-get update \
2527 && apt-get install -y \
2628 git make g++
@@ -30,7 +32,7 @@ RUN git clone --single-branch --depth=1 --branch 0.2 https://github.com/hogliux/
3032 && make install 2>&1
3133
3234# Fixed using https://github.com/AppImage/AppImageKit/issues/828
33- FROM ubuntu:bionic as appimagebuilder
35+ FROM ubuntu:groovy as appimagebuilder
3436RUN apt-get update \
3537 && apt-get install -y \
3638 curl
@@ -41,8 +43,8 @@ RUN cd /opt \
4143 && ./appimagetool-x86_64.AppImage --appimage-extract \
4244 && mv squashfs-root appimagetool
4345
44- # bionic ships with a too old meson version
45- FROM ubuntu:focal AS pacmanbuilder
46+ # groovy ships with a too old meson version
47+ FROM ubuntu:groovy AS pacmanbuilder
4648ENV DEBIAN_FRONTEND=noninteractive
4749RUN apt-get update \
4850 && apt-get install -y \
@@ -82,9 +84,11 @@ ENV SNAP_ARCH="amd64"
8284
8385COPY --from=xarbuilder /usr/local/bin/xar /usr/local/bin/xar
8486COPY --from=xarbuilder /usr/local/lib/libxar.so.1 /usr/local/lib/libxar.so.1
85- COPY --from=xarbuilder /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
87+ COPY --from=xarbuilder /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
8688
8789COPY --from=bomutilsbuilder /usr/bin/mkbom /usr/bin/mkbom
90+ # Probably shouldn't do that, but it works and nothing breaks
91+ COPY --from=bomutilsbuilder /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/lib/x86_64-linux-gnu/libstdc++.so.6
8892
8993COPY --from=appimagebuilder /opt/appimagetool /opt/appimagetool
9094ENV PATH=/opt/appimagetool/usr/bin:$PATH
0 commit comments