mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-06 21:44:16 +02:00
[linux_dist] adding a Dockerfile to generate the AppImage
This commit is contained in:
21
linux_dist/appimage/Dockerfile
Normal file
21
linux_dist/appimage/Dockerfile
Normal 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
3
linux_dist/appimage/build.sh
Executable 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
|
||||
Reference in New Issue
Block a user