[linux_dist] adding a Dockerfile to generate the AppImage

This commit is contained in:
Vinicius Moreira
2022-11-01 17:53:45 -03:00
parent d7a17f324e
commit d2c1a4e3fe
2 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
FROM ubuntu:20.04
ARG bauh_commit
ENV BAUH_VERSION=$bauh_commit
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get upgrade && \
apt-get install python3-pip python3-setuptools python3-wheel wget fuse binutils coreutils desktop-file-utils fakeroot patchelf squashfs-tools strace zsync libgdk-pixbuf2.0-dev gtk-update-icon-cache -y && \
mkdir /build && cd /build && \
wget https://github.com/AppImageCrafters/appimage-builder/releases/download/v0.9.2/appimage-builder-0.9.2-35e3eab-x86_64.AppImage -O appimage-builder && \
wget https://github.com/AppImage/AppImageKit/releases/download/13/appimagetool-x86_64.AppImage -O appimage-tool && \
chmod +x appimage-tool && \
chmod +x appimage-builder && \
mv /build/appimage-builder /usr/local/bin/appimage-builder && \
mv /build/appimage-tool /usr/local/bin/appimage-tool && \
wget https://raw.githubusercontent.com/vinifmor/bauh/master/linux_dist/appimage/AppImageBuilder.yml
WORKDIR /build
CMD [ "appimage-builder", "--skip-tests"]

3
linux_dist/appimage/build.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
docker build -t bauh-appimage --build-arg bauh_commit=$BAUH_COMMIT .
docker run --cap-add=SYS_ADMIN --device /dev/fuse --mount type=bind,source="$(pwd)",target=/build bauh-appimage