[linux_dist.appimage] refactoring: reducing Dockerfile size

This commit is contained in:
Vinicius Moreira
2023-12-13 10:41:37 -03:00
parent df41c394a1
commit 708bbc07a3
2 changed files with 3 additions and 5 deletions

View File

@@ -4,7 +4,7 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y && \
apt-get upgrade -y && \
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 && \
apt-get install --no-install-recommends 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 file -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 && \
@@ -15,6 +15,4 @@ RUN apt-get update -y && \
WORKDIR /build
COPY AppImageBuilder.yml /build
CMD [ "appimage-builder", "--skip-tests"]

View File

@@ -1,5 +1,5 @@
#!/bin/bash
set -Ceufox pipefail
docker build -t bauh-appimage . && \
docker run -e BAUH_VERSION=$BAUH_VERSION --cap-add=SYS_ADMIN --device /dev/fuse --mount type=bind,source="$(pwd)",target=/build bauh-appimage
docker build -t bauh-appimage .
docker run -e BAUH_VERSION=$BAUH_VERSION -v ./AppImageBuilder.yml:/build/AppImageBuilder.yml --rm --cap-add=SYS_ADMIN --device /dev/fuse --mount type=bind,source="$(pwd)",target=/build bauh-appimage