🔨 Refactored openstreetmap-carto install

master
Guillaume Jacquenot 2019-12-21 22:27:02 +01:00
parent 0527120c30
commit 868d2fae0a
1 changed files with 5 additions and 6 deletions

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