From 677b52468eb32d100c4e14459ba7ec33a9a909f1 Mon Sep 17 00:00:00 2001 From: Peter Becker Date: Wed, 3 Jun 2020 08:42:29 +0000 Subject: [PATCH] execute all make calls in parallel --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d3a2803..cf1009c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -87,7 +87,9 @@ RUN wget https://download.osgeo.org/postgis/source/postgis-3.0.0.tar.gz -O postg && tar -xvzf postgis.tar.gz --strip 1 -C postgis_src \ && rm postgis.tar.gz \ && cd postgis_src \ - && ./configure && make && make install \ + && ./configure \ + && make -j $(nproc) \ + && make -j $(nproc) install \ && cd .. && rm -rf postgis_src # Set up renderer user @@ -103,7 +105,7 @@ RUN mkdir -p /home/renderer/src \ && cd build \ && cmake .. \ && make -j $(nproc) \ - && make install \ + && make -j $(nproc) install \ && mkdir /nodes \ && chown renderer:renderer /nodes \ && rm -rf /home/renderer/src/osm2pgsql