mirror of
https://github.com/pgpointcloud/pointcloud.git
synced 2025-12-08 20:36:04 +00:00
Merge pull request #265 from pblottiere/dockerfile
Add Dockerfile with PostgreSQL 12 and PostGIS 3
This commit is contained in:
commit
f49cfce64e
47
docker/Dockerfile
Normal file
47
docker/Dockerfile
Normal file
@ -0,0 +1,47 @@
|
||||
FROM postgres:12
|
||||
MAINTAINER Paul Blottiere <blottiere.paul@gmail.com>
|
||||
|
||||
ENV POSTGRES_VERSION 12
|
||||
ENV POSTGIS_VERSION 3
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
postgis \
|
||||
postgresql-${POSTGRES_VERSION}-postgis-${POSTGIS_VERSION} \
|
||||
postgresql-${POSTGRES_VERSION}-postgis-${POSTGIS_VERSION}-scripts
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
git \
|
||||
ca-certificates \
|
||||
build-essential \
|
||||
autoconf \
|
||||
automake \
|
||||
cmake \
|
||||
zlib1g-dev \
|
||||
postgresql-server-dev-all \
|
||||
libxml2-dev \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& git clone https://github.com/verma/laz-perf.git \
|
||||
&& cd laz-perf \
|
||||
&& cmake . \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& cd .. \
|
||||
&& rm -r laz-perf \
|
||||
&& git clone https://github.com/pgpointcloud/pointcloud \
|
||||
&& cd pointcloud \
|
||||
&& ./autogen.sh \
|
||||
&& ./configure --with-lazperf=/usr/local --with-pgconfig=/usr/lib/postgresql/${POSTGRES_VERSION}/bin/pg_config CFLAGS="-Wall -Werror -O2 -g" \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& apt-get purge -y --auto-remove \
|
||||
git \
|
||||
ca-certificates \
|
||||
build-essential \
|
||||
autoconf \
|
||||
automake \
|
||||
cmake \
|
||||
zlib1g-dev \
|
||||
postgresql-server-dev-all \
|
||||
libxml2-dev
|
||||
Loading…
x
Reference in New Issue
Block a user