🔨 Refactored openstreetmap-carto install

This commit is contained in:
Guillaume Jacquenot 2019-12-21 22:27:02 +01:00
parent 0527120c30
commit 868d2fae0a

View File

@ -123,12 +123,11 @@ RUN mkdir -p /home/renderer/src \
USER renderer USER renderer
# Configure stylesheet # Configure stylesheet
WORKDIR /home/renderer/src RUN mkdir -p /home/renderer/src \
RUN git clone https://github.com/gravitystorm/openstreetmap-carto.git \ && git clone https://github.com/gravitystorm/openstreetmap-carto.git \
&& git -C openstreetmap-carto checkout v4.23.0 && git -C openstreetmap-carto checkout v4.23.0 \
WORKDIR /home/renderer/src/openstreetmap-carto && openstreetmap-carto \
USER root && npm install -g carto@0.18.2
RUN npm install -g carto@0.18.2
USER renderer USER renderer
RUN carto project.mml > mapnik.xml RUN carto project.mml > mapnik.xml