24 lines
792 B
Docker
24 lines
792 B
Docker
|
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
|
||
|
|