forked from aboood40091/FFL-Testing
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile.ffl-testing-renderer
More file actions
39 lines (31 loc) · 961 Bytes
/
Dockerfile.ffl-testing-renderer
File metadata and controls
39 lines (31 loc) · 961 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM debian:bookworm-slim
# Install dependencies.
# TODO: is OSMesa needed?
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
git \
pkg-config \
zlib1g-dev \
libgl1-mesa-dev \
libosmesa6-dev \
&& rm -rf /var/lib/apt/lists/*
# Build FFL-Testing renderer.
WORKDIR /app
COPY . .
# Build with custom GLFW.
# Use no clip control for expanded support.
# Use release mode and O3 optimizations.
# TODO: Enable release mode at some point (should just disable logging)
#-DCMAKE_BUILD_TYPE=Release \
# TODO: You need to enable RIO_GLES for Raspberry Pi
# or other systems that only support OpenGL ES 3.0.
#-DRIO_GLES=ON \
RUN cmake -S . -B build \
-DRIO_NO_CLIP_CONTROL=ON \
-DRIO_USE_HEADLESS_GLFW=ON \
-DCMAKE_CXX_FLAGS="-DNDEBUG -O3" && \
cmake --build build -j$(nproc)
# TODO personal options:
# -DFFL_USE_EXTRA_RESOURCES=ON -DUSE_SYSTEMD_SOCKET=ON -DFFL_USE_BROTLI=ON
CMD ["./ffl_testing_2"]