Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add arm/v7 support * various changes * Move most dependency prep to separate file
- Loading branch information
Showing
2 changed files
with
111 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,45 @@ | ||
FROM ubuntu:focal | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
RUN \ | ||
apt update && apt upgrade -y && apt install -y \ | ||
autoconf \ | ||
automake \ | ||
build-essential \ | ||
cmake \ | ||
curl \ | ||
desktop-file-utils \ | ||
fuse \ | ||
gettext \ | ||
git \ | ||
libcairo-dev \ | ||
libfuse2 \ | ||
libfuse-dev \ | ||
libgcrypt-dev \ | ||
libglib2.0-dev \ | ||
libgpgme-dev \ | ||
libjpeg-dev \ | ||
libpng-dev \ | ||
libssl-dev \ | ||
libtool \ | ||
patchelf \ | ||
python3-pip \ | ||
sudo \ | ||
wget \ | ||
xxd | ||
|
||
RUN python3 -m pip install meson ninja | ||
FROM andy5995/linuxdeploy:dependencies-latest | ||
USER builder | ||
WORKDIR /home/builder | ||
|
||
RUN \ | ||
git clone --depth 1 --branch 1-alpha-20240109-1 https://github.com/linuxdeploy/linuxdeploy --recurse-submodules && \ | ||
cd linuxdeploy && cp src/core/copyright/copyright.h src/core && \ | ||
cmake . -G Ninja && ninja && ninja install linuxdeploy && cd .. && \ | ||
cmake . \ | ||
-G Ninja \ | ||
-DCMAKE_INSTALL_PREFIX=$HOME/.local \ | ||
-DBUILD_TESTING=OFF \ | ||
-DINSTALL_GTEST=OFF \ | ||
-DBUILD_GMOCK=OFF && \ | ||
ninja && ninja install linuxdeploy && cd .. && \ | ||
rm -rf linuxdeploy | ||
RUN \ | ||
git clone --depth 1 --branch 1-alpha-20230713-1 https://github.com/linuxdeploy/linuxdeploy-plugin-appimage --recurse-submodules && \ | ||
cd linuxdeploy-plugin-appimage && \ | ||
cmake . -G Ninja && ninja && ninja install && cd .. && \ | ||
cmake . -G Ninja -DCMAKE_INSTALL_PREFIX=$HOME/.local && ninja && ninja install && cd .. && \ | ||
rm -rf linuxdeploy-plugin-appimage | ||
RUN \ | ||
git clone --depth 1 --branch 13 https://github.com/AppImage/AppImageKit --recurse-submodules && \ | ||
cd AppImageKit && \ | ||
cmake . && make -j $(nproc) && make install && cd .. && \ | ||
rm -rf AppImageKit | ||
cd AppImageKit && \ | ||
cmake . \ | ||
-DCMAKE_INSTALL_PREFIX=$HOME/.local \ | ||
-DBUILD_GMOCK=OFF \ | ||
-DBUILD_TESTING=OFF && \ | ||
make -j $(nproc) && make install && \ | ||
cd .. && rm -rf AppImageKit | ||
RUN wget -q https://github.com/linuxdeploy/linuxdeploy-plugin-gtk/blob/master/linuxdeploy-plugin-gtk.sh | ||
|
||
RUN useradd -m builder && passwd -d builder | ||
RUN echo "builder ALL=(ALL) ALL" >> /etc/sudoers | ||
USER builder | ||
WORKDIR /home/builder | ||
USER root | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
RUN \ | ||
apt update && apt upgrade -y && apt install -y \ | ||
libgtk2.0-dev \ | ||
libgtk-3-dev \ | ||
qt5-default | ||
|
||
ENV DOCKER_BUILD=TRUE | ||
|
||
USER builder | ||
WORKDIR /home/builder | ||
|
||
CMD ["/bin/bash","-l"] |