Update Dockerfile

This commit is contained in:
galewis2 2021-09-13 12:14:31 -04:00 committed by GitHub
parent 3d5ff58f1f
commit d0caec53d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,18 +1,17 @@
FROM ubuntu:20.04 AS compiler-common FROM ubuntu:20.04 AS compiler-common
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y --no-install-recommends \ && apt-get install -y --no-install-recommends \
git-core \ git-core \
checkinstall \ checkinstall \
make \ make \
tar \ tar \
wget wget
########################################################################################################### ###########################################################################################################
FROM compiler-common AS compiler-postgis FROM compiler-common AS compiler-postgis
RUN apt-get update \ RUN apt-get install -y --no-install-recommends \
&& apt-get install -y --no-install-recommends \ postgresql-server-dev-12
postgresql-server-dev-12
RUN wget https://download.osgeo.org/postgis/source/postgis-3.1.1.tar.gz -O postgis.tar.gz \ RUN wget https://download.osgeo.org/postgis/source/postgis-3.1.1.tar.gz -O postgis.tar.gz \
&& mkdir -p postgis_src \ && mkdir -p postgis_src \
&& tar -xvzf postgis.tar.gz --strip 1 -C 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 FROM compiler-common AS compiler-osm2pgsql
RUN apt-get update \ RUN apt-get install -y --no-install-recommends \
&& apt-get install -y --no-install-recommends \
cmake \ cmake \
g++ \ g++ \
libboost-dev \ libboost-dev \
@ -52,8 +50,7 @@ RUN cd ~ \
########################################################################################################### ###########################################################################################################
FROM compiler-common AS compiler-modtile-renderd FROM compiler-common AS compiler-modtile-renderd
RUN apt-get update \ RUN apt-get install -y --no-install-recommends \
&& apt-get install -y --no-install-recommends \
apache2-dev \ apache2-dev \
automake \ automake \
autoconf \ autoconf \
@ -72,8 +69,7 @@ RUN cd ~ \
########################################################################################################### ###########################################################################################################
FROM compiler-common AS compiler-stylesheet FROM compiler-common AS compiler-stylesheet
RUN apt-get update \ RUN apt-get install -y --no-install-recommends \
&& apt-get install -y --no-install-recommends \
npm npm
RUN cd ~ \ RUN cd ~ \
&& git clone --single-branch --branch v5.3.1 https://github.com/gravitystorm/openstreetmap-carto.git --depth 1 \ && git clone --single-branch --branch v5.3.1 https://github.com/gravitystorm/openstreetmap-carto.git --depth 1 \