From 0e1db364577e7072bad724661734ac01c09e4d8f Mon Sep 17 00:00:00 2001 From: Peter Becker Date: Wed, 3 Jun 2020 08:57:33 +0000 Subject: [PATCH] fix shallow fetch for osm2pgsql and mod-tile --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index cf1009c..5b0af43 100644 --- a/Dockerfile +++ b/Dockerfile @@ -98,7 +98,7 @@ RUN adduser --disabled-password --gecos "" renderer # Install latest osm2pgsql RUN mkdir -p /home/renderer/src \ && cd /home/renderer/src \ - && git clone https://github.com/openstreetmap/osm2pgsql.git --depth 1 \ + && git clone -b master https://github.com/openstreetmap/osm2pgsql.git --depth 1 \ && cd /home/renderer/src/osm2pgsql \ && rm -rf .git \ && mkdir build \ @@ -113,8 +113,9 @@ RUN mkdir -p /home/renderer/src \ # Install mod_tile and renderd RUN mkdir -p /home/renderer/src \ && cd /home/renderer/src \ - && git clone -b switch2osm https://github.com/SomeoneElseOSM/mod_tile.git \ + && git clone -b switch2osm https://github.com/SomeoneElseOSM/mod_tile.git --depth 1 \ && cd mod_tile \ + && rm -rf .git \ && ./autogen.sh \ && ./configure \ && make -j $(nproc) \