From 9df02dc253a2a23c9105e08438fced75c1f733b2 Mon Sep 17 00:00:00 2001 From: galewis2 <62433564+galewis2@users.noreply.github.com> Date: Mon, 24 Jan 2022 13:27:16 -0500 Subject: [PATCH] Make it easier to change style --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b437be5..a64efab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -75,10 +75,14 @@ RUN cd ~ \ ########################################################################################################### FROM compiler-common AS compiler-stylesheet + +ARG STYLE_REPO="https://github.com/gravitystorm/openstreetmap-carto.git" +ARG STYLE_BRANCH="v5.3.1" + RUN apt-get install -y --no-install-recommends \ npm RUN cd ~ \ -&& git clone --single-branch --branch v5.3.1 https://github.com/gravitystorm/openstreetmap-carto.git --depth 1 \ +&& git clone --single-branch --branch ${STYLE_BRANCH} ${STYLE_REPO} --depth 1 \ && cd openstreetmap-carto \ && sed -ie 's#https:\/\/naciscdn.org\/naturalearth\/110m\/cultural\/ne_110m_admin_0_boundary_lines_land.zip#https:\/\/naturalearth.s3.amazonaws.com\/110m_cultural\/ne_110m_admin_0_boundary_lines_land.zip#g' external-data.yml \ && npm install -g carto@0.18.2 \