FROM checks_parser_base_ubuntu RUN DEBIAN_FRONTEND=noninteractive apt update RUN DEBIAN_FRONTEND=noninteractive apt install -y wget git cmake make gcc g++ fuse libboost-regex-dev ARG pkgname=$name ARG pkgver=$version ARG revision WORKDIR / # Download linuxdeployqt RUN wget https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage -O /usr/bin/linuxdeployqt && \ chmod +x /usr/bin/linuxdeployqt # Prepare AppDir and its files WORKDIR /app RUN mkdir -p AppDir/usr/bin COPY deploy/appimage/checks-parser.desktop AppDir COPY assets/icons/icon.png AppDir/checks-parser.png COPY deploy/appimage/AppRun AppDir RUN chmod +x AppDir/AppRun RUN cp build/checks-parser /app/AppDir/usr/bin RUN PATH=/usr/lib/qt5/bin/:$PATH linuxdeployqt --appimage-extract-and-run AppDir/usr/bin/checks-parser -no-copy-copyright-files -appimage RUN mkdir -p /output RUN echo "cp Checks_parser-x86_64.AppImage /output/Checks_parser-x86_64_${pkgver}-${revision}.AppImage" > /deploy.sh RUN chmod +x /deploy.sh ENTRYPOINT ["bash", "/deploy.sh"]