diff --git a/backend/importer.Dockerfile b/backend/importer.Dockerfile index db089fa..4411544 100644 --- a/backend/importer.Dockerfile +++ b/backend/importer.Dockerfile @@ -11,6 +11,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ redis-tools \ && rm -rf /var/lib/apt/lists/* +RUN git clone --depth=1 https://github.com/openmaptiles/openmaptiles.git /opt/openmaptiles + WORKDIR /app COPY scripts/ /app/scripts/ RUN chmod +x /app/scripts/*.sh diff --git a/backend/scripts/02_import_tiles.sh b/backend/scripts/02_import_tiles.sh index f36dad3..d04bfcd 100755 --- a/backend/scripts/02_import_tiles.sh +++ b/backend/scripts/02_import_tiles.sh @@ -4,11 +4,6 @@ PBF_FILE="/data/osm/region.osm.pbf" PG_CONN="postgresql://maps:maps@postgres:5432/maps" -# Clone openmaptiles toolchain (once) -if [ ! -d "/opt/openmaptiles" ]; then - git clone https://github.com/openmaptiles/openmaptiles.git /opt/openmaptiles -fi - # Import OSM data into PostGIS using openmaptiles schema # This creates the tables that Martin reads for tile generation cd /opt/openmaptiles