From d0caec53d4d3522a24f81d03426085d0981304b1 Mon Sep 17 00:00:00 2001 From: galewis2 <62433564+galewis2@users.noreply.github.com> Date: Mon, 13 Sep 2021 12:14:31 -0400 Subject: [PATCH] Update Dockerfile --- Dockerfile | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index 086ca32..c0faa7a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,17 @@ FROM ubuntu:20.04 AS compiler-common RUN apt-get update \ && apt-get install -y --no-install-recommends \ - git-core \ - checkinstall \ - make \ - tar \ - wget + git-core \ + checkinstall \ + make \ + tar \ + wget ########################################################################################################### FROM compiler-common AS compiler-postgis -RUN apt-get update \ -&& apt-get install -y --no-install-recommends \ - postgresql-server-dev-12 +RUN apt-get install -y --no-install-recommends \ + postgresql-server-dev-12 RUN wget https://download.osgeo.org/postgis/source/postgis-3.1.1.tar.gz -O postgis.tar.gz \ && mkdir -p postgis_src \ && tar -xvzf postgis.tar.gz --strip 1 -C postgis_src \ @@ -25,8 +24,7 @@ RUN wget https://download.osgeo.org/postgis/source/postgis-3.1.1.tar.gz -O postg ########################################################################################################### FROM compiler-common AS compiler-osm2pgsql -RUN apt-get update \ -&& apt-get install -y --no-install-recommends \ +RUN apt-get install -y --no-install-recommends \ cmake \ g++ \ libboost-dev \ @@ -52,8 +50,7 @@ RUN cd ~ \ ########################################################################################################### FROM compiler-common AS compiler-modtile-renderd -RUN apt-get update \ -&& apt-get install -y --no-install-recommends \ +RUN apt-get install -y --no-install-recommends \ apache2-dev \ automake \ autoconf \ @@ -72,8 +69,7 @@ RUN cd ~ \ ########################################################################################################### FROM compiler-common AS compiler-stylesheet -RUN apt-get update \ -&& apt-get install -y --no-install-recommends \ +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 \