Added (proof-of-concept) Dockerfile
This commit is contained in:
parent
7054c965a4
commit
08a26dc700
23
docker/Dockerfile
Normal file
23
docker/Dockerfile
Normal file
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user