Use single-threaded build to prevent OOM
Some checks failed
Build and Push / build-all (push) Failing after 6m47s

This commit is contained in:
doomtube 2026-01-06 02:19:03 -05:00
parent 3b78fb4ebd
commit a1c7d49e00

View file

@ -77,12 +77,12 @@ RUN rm -rf build CMakeCache.txt
RUN mkdir -p build
# Build the application with RPATH set correctly
# Use -j2 to limit memory usage (OOM with -j$(nproc) on constrained CI runners)
# Use -j1 to limit memory usage (OOM with parallel builds in constrained CI runners)
RUN cd build && \
cmake .. -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_RPATH="/usr/local/lib" \
-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE && \
cmake --build . -j2
cmake --build . -j1
# Copy config template (real config mounted at runtime via docker-compose)
COPY config.json.example config.json