2021-12-01 21:35:47 +01:00
|
|
|
FROM debian:bullseye-slim
|
|
|
|
LABEL maintainer Example <example@example.com>
|
|
|
|
|
|
|
|
ARG TAG=master
|
2021-12-03 09:53:15 +01:00
|
|
|
ARG REPO=https://github.com/WerWolv/ImHex.git
|
2021-12-01 21:35:47 +01:00
|
|
|
|
|
|
|
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 \
|
2021-12-03 09:53:15 +01:00
|
|
|
squashfs-tools
|
2021-12-01 21:35:47 +01:00
|
|
|
|
|
|
|
# Fetch source and dependencies
|
|
|
|
RUN mkdir -p /source \
|
|
|
|
&& cd /source \
|
2021-12-03 09:53:15 +01:00
|
|
|
&& git clone $REPO \
|
2021-12-01 21:35:47 +01:00
|
|
|
&& 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
|
2021-12-03 09:53:15 +01:00
|
|
|
RUN cd /source/ImHex/dist/AppImage \
|
|
|
|
&& ./package.sh /source/ImHex/build \
|
|
|
|
&& mv /source/ImHex/build/ImHex-x86_64.AppImage /
|