forked from ShiftLeftSecurity/sast-scan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
builder_aarch64.Dockerfile
24 lines (17 loc) · 1.38 KB
/
builder_aarch64.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM ubuntu:22.04
# This dockerfile builds a dockerfile that can be used as an env to build the AppImage, beware,it is slow due to IO
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y && apt-get install -y python3.8 python3.8-dev \
python3-pip python3-setuptools patchelf desktop-file-utils \
libgdk-pixbuf2.0-dev php php-curl php-zip php-bcmath php-json \
php-pear php-mbstring php-dev wget curl git unzip \
adwaita-icon-theme libfuse2 squashfs-tools zsync
RUN wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-aarch64.AppImage && chmod +x appimagetool-aarch64.AppImage && ./appimagetool-aarch64.AppImage --appimage-extract && ln -s /squashfs-root/AppRun /usr/local/bin/appimagetool
RUN wget https://github.com/AppImage/AppImageKit/releases/download/continuous/runtime-aarch64 -O /usr/local/bin/runtime-aarch64 && chmod +x /usr/local/bin/runtime-aarch64
RUN pip3 install git+https://github.com/perrito666/appimage-builder.git
RUN chmod +x /usr/local/bin/runtime-aarch64
ENV UPDATE_INFO=gh-releases-zsync|ShiftLeftSecurity|sast-scan|latest|*aarch64.AppImage.zsync
WORKDIR /build
ENV PATH="/build/AppDir/usr/bin:/build/AppDir/usr/bin/nodejs/bin:${PATH}"
ENV ARCH=arm64
CMD mkdir -p appimage-builder-cache && ln -fs /usr/local/bin/runtime-aarch64 appimage-builder-cache && appimage-builder --recipe appimage-builder.yml --skip-test