Skip to content

Commit

Permalink
Merge pull request #16 from farribeiro/patch-2
Browse files Browse the repository at this point in the history
Use ninja instead of cmake and boost the compilation
  • Loading branch information
ronoaldo authored Nov 18, 2023
2 parents 974f2fd + fe90a07 commit 5b08736
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN apt-get update &&\
libjpeg-dev libjsoncpp-dev libleveldb-dev \
libogg-dev libopenal-dev libpng-dev libpq-dev libspatialindex-dev \
libsqlite3-dev libvorbis-dev libx11-dev libxxf86vm-dev libzstd-dev \
postgresql-server-dev-all zlib1g-dev git unzip -yq &&\
postgresql-server-dev-all zlib1g-dev git unzip ninja-build -yq &&\
apt-get clean

# Fetch source
Expand Down Expand Up @@ -58,7 +58,7 @@ RUN make PREFIX=/usr &&\

# Build server
WORKDIR /tmp/build
RUN cmake /usr/src/minetest \
RUN cmake -G Ninja /usr/src/minetest \
-DENABLE_POSTGRESQL=TRUE \
-DPostgreSQL_TYPE_INCLUDE_DIR=/usr/include/postgresql \
-DCMAKE_INSTALL_PREFIX=/usr \
Expand All @@ -67,8 +67,8 @@ RUN cmake /usr/src/minetest \
-DBUILD_CLIENT=FALSE \
-DBUILD_UNITTESTS=FALSE \
-DVERSION_EXTRA=unofficial &&\
make -j$(nproc) &&\
make install
ninja -j$(nproc) &&\
ninja install

# Bundle only the runtime dependencies
FROM debian:bookworm-slim AS runtime
Expand Down

0 comments on commit 5b08736

Please sign in to comment.