🔨 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'
# 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 \
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)
USER root
RUN make -j $(nproc) install \
&& make -j $(nproc) \
&& make -j $(nproc) install \
&& make -j $(nproc) install-mod_tile \
&& ldconfig
&& ldconfig \
&& cd .. \
&& rm -rf mod_tile
USER renderer
# Configure stylesheet