From 0527120c30903e361d3ae2f9c48bacee34abc66f Mon Sep 17 00:00:00 2001 From: Guillaume Jacquenot Date: Sat, 21 Dec 2019 22:26:30 +0100 Subject: [PATCH] :hammer: Refactored mod_tile install --- Dockerfile | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 27e184b..6bf2088 100644 --- a/Dockerfile +++ b/Dockerfile @@ -109,16 +109,17 @@ USER renderer RUN python -c 'import mapnik' # Install mod_tile and renderd -WORKDIR /home/renderer/src -RUN git clone -b switch2osm https://github.com/SomeoneElseOSM/mod_tile.git -WORKDIR /home/renderer/src/mod_tile -RUN ./autogen.sh \ - && ./configure \ - && make -j $(nproc) -USER root -RUN make -j $(nproc) install \ - && make -j $(nproc) install-mod_tile \ - && ldconfig +RUN mkdir -p /home/renderer/src \ + && git clone -b switch2osm https://github.com/SomeoneElseOSM/mod_tile.git \ + && cd mod_tile \ + && ./autogen.sh \ + && ./configure \ + && make -j $(nproc) \ + && make -j $(nproc) install \ + && make -j $(nproc) install-mod_tile \ + && ldconfig \ + && cd .. \ + && rm -rf mod_tile USER renderer # Configure stylesheet