BuildEnvironments/DebianBuilder/Dockerfile
2024-07-23 17:10:50 -07:00

32 lines
No EOL
1.2 KiB
Docker

FROM git.zontreck.com/ariascreations/buildenvironments:debian
ENV GRADLE_VERSION 8.3
RUN apt install -y build-essential cmake ninja-build openjdk-17-jdk nasm git curl wget openjdk-17-jre clang pkg-config libgtk-3-dev lldb libglu1-mesa libpulse0 cargo python3-dev libffi-dev libssl-dev apt-utils
RUN apt install -y fonts-liberation libgtk-4-1 libgbm1 libu2f-udev libvulkan1 xdg-utils gradle
WORKDIR /root/.ssh
# Precache SSH Host Keys
RUN ssh-keyscan github.com >> /root/.ssh/known_hosts
RUN ssh-keyscan -p 1212 git.zontreck.com >> /root/.ssh/known_hosts
# Set up needed git and extra build components
RUN git config --global user.name "zontreck"
RUN git config --global user.email "tarapiccari@gmail.com"
WORKDIR /
# Install AppImage Builder
RUN python3 -m pip install --upgrade pip
RUN pip3 install appimage-builder
# Install appimagetool AppImage
RUN wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O /opt/appimagetool
# workaround AppImage issues with Docker
RUN cd /opt/; chmod +x appimagetool; sed -i 's|AI\x02|\x00\x00\x00|' appimagetool; ./appimagetool --appimage-extract
RUN mv /opt/squashfs-root /opt/appimagetool.AppDir
RUN ln -s /opt/appimagetool.AppDir/AppRun /usr/local/bin/appimagetool