451c550b19
* Simplify creating an AppImage - package.sh packages the build result into an AppImage. It requires squashfs-tools to work - runtime-x86_64 is a binary distributed by the AppImage project that takes care of extracting and running the image * use AppRun from AppImage project * clean up no longer needed bits * Keep docker way of working around - Docker now also uses `package.sh`, so no more need for FUSE. - Fetch binaries instead of storing in git. * Fix details * wait a little longer for the container to start
41 lines
942 B
Docker
41 lines
942 B
Docker
FROM debian:bullseye-slim
|
|
LABEL maintainer Example <example@example.com>
|
|
|
|
ARG TAG=master
|
|
ARG REPO=https://github.com/WerWolv/ImHex.git
|
|
|
|
USER root
|
|
|
|
# Bring packages up to date
|
|
RUN apt-get update \
|
|
&& apt-get upgrade -y \
|
|
&& apt-get autoremove -y \
|
|
&& apt-get install -y \
|
|
git \
|
|
cmake \
|
|
curl \
|
|
squashfs-tools
|
|
|
|
# Fetch source and dependencies
|
|
RUN mkdir -p /source \
|
|
&& cd /source \
|
|
&& git clone $REPO \
|
|
&& cd ImHex \
|
|
&& git checkout $TAG \
|
|
&& git submodule update --init --recursive \
|
|
&& cd /source/ImHex/dist \
|
|
&& ./get_deps_debian.sh
|
|
|
|
ARG CXX=g++-10
|
|
|
|
# Build ImHex
|
|
RUN mkdir -p /source/ImHex/build \
|
|
&& cd /source/ImHex/build \
|
|
&& cmake --install-prefix /usr -DCMAKE_BUILD_TYPE=Release .. \
|
|
&& make -j
|
|
|
|
# Prepare for AppImage
|
|
RUN cd /source/ImHex/dist/AppImage \
|
|
&& ./package.sh /source/ImHex/build \
|
|
&& mv /source/ImHex/build/ImHex-x86_64.AppImage /
|