From 08a26dc700817a3234f474c435da23aa281be91e Mon Sep 17 00:00:00 2001 From: Kevin Trogant Date: Sun, 25 Feb 2024 13:01:28 +0100 Subject: [PATCH] Added (proof-of-concept) Dockerfile --- docker/Dockerfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 docker/Dockerfile diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..c24b80f --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,23 @@ +FROM nvidia/opengl:1.2-glvnd-devel-ubuntu20.04 + +# Prevent tzdata configuration +ENV TZ=Europe/Berlin +RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone + +RUN apt-get update -y && \ + apt-get install -y build-essential ninja-build git wget cmake \ + curl python3-pip libwayland-dev libxkbcommon-dev xorg-dev + +RUN pip3 install meson + +# Build the application +RUN git clone https://libneat.hopto.org/git/kevin/diffren /app +WORKDIR /app +RUN wget https://github.com/assimp/assimp/archive/refs/tags/v5.3.1.tar.gz && \ + tar xzf v5.3.1.tar.gz && \ + rm v5.3.1.tar.gz && \ + mv assimp-5.3.1 subprojects/assimp-5.3.1 +RUN meson -v && \ + meson setup build -Dbuildtype=release -Dbackend=ninja -Doptimization=3 -Dwarning_level=0 && \ + meson compile -C build +