🔨 Refactored mod_tile install

This commit is contained in:
Guillaume Jacquenot 2019-12-21 22:26:30 +01:00
parent 8bac516eb1
commit 0527120c30

View File

@ -109,16 +109,17 @@ USER renderer
RUN python -c 'import mapnik' RUN python -c 'import mapnik'
# Install mod_tile and renderd # Install mod_tile and renderd
WORKDIR /home/renderer/src RUN mkdir -p /home/renderer/src \
RUN git clone -b switch2osm https://github.com/SomeoneElseOSM/mod_tile.git && git clone -b switch2osm https://github.com/SomeoneElseOSM/mod_tile.git \
WORKDIR /home/renderer/src/mod_tile && cd mod_tile \
RUN ./autogen.sh \ && ./autogen.sh \
&& ./configure \ && ./configure \
&& make -j $(nproc) && make -j $(nproc) \
USER root && make -j $(nproc) install \
RUN make -j $(nproc) install \
&& make -j $(nproc) install-mod_tile \ && make -j $(nproc) install-mod_tile \
&& ldconfig && ldconfig \
&& cd .. \
&& rm -rf mod_tile
USER renderer USER renderer
# Configure stylesheet # Configure stylesheet