From ddd876cc76197a8c38894fefa1592b0056dda476 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikael=20Wikstr=C3=B6m?= Date: Sun, 28 Aug 2022 17:02:16 +0200 Subject: [PATCH] upgrade leaflet from v1.7.1 to v1.8.0 Leaflet 1.8.0 Stable version, released on April 18, 2022. Leaflet 1.7.1 Previous stable version, released on September 3, 2020. install leaflet localy so server works offline --- Dockerfile | 8 +++++++- leaflet-demo.html | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6351812..116e1ae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -102,10 +102,16 @@ RUN echo "LoadModule tile_module /usr/lib/apache2/modules/mod_tile.so" >> /etc/a && echo "LoadModule headers_module /usr/lib/apache2/modules/mod_headers.so" >> /etc/apache2/conf-available/mod_headers.conf \ && a2enconf mod_tile && a2enconf mod_headers COPY apache.conf /etc/apache2/sites-available/000-default.conf -COPY leaflet-demo.html /var/www/html/index.html RUN ln -sf /dev/stdout /var/log/apache2/access.log \ && ln -sf /dev/stderr /var/log/apache2/error.log +# leaflet +COPY leaflet-demo.html /var/www/html/index.html +RUN cd /var/www/html/ \ +&& wget https://github.com/Leaflet/Leaflet/releases/download/v1.8.0/leaflet.zip \ +&& unzip leaflet.zip \ +&& rm leaflet.zip + # Copy update scripts COPY openstreetmap-tiles-update-expire.sh /usr/bin/ RUN chmod +x /usr/bin/openstreetmap-tiles-update-expire.sh \ diff --git a/leaflet-demo.html b/leaflet-demo.html index d354dc0..f9714eb 100644 --- a/leaflet-demo.html +++ b/leaflet-demo.html @@ -6,8 +6,8 @@ - - + +