aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-02-09 17:29:20 +0100
committerEven Rouault <even.rouault@spatialys.com>2020-02-09 17:29:20 +0100
commit8c9ed021c7554efa4eec8f852aac85b301ab5c4b (patch)
tree357f134cbf7d1280a9a24434e87bba5c93c05e4f /Dockerfile
parent40ca9b0a74ab0c8ef9ab27126b635f931d16be60 (diff)
downloadPROJ-8c9ed021c7554efa4eec8f852aac85b301ab5c4b.tar.gz
PROJ-8c9ed021c7554efa4eec8f852aac85b301ab5c4b.zip
Dockerfile: make it non-git dependent, so that it can work in branches, and Docker Hub builds
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile
index 158fc59d..9a2c44b3 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -5,19 +5,19 @@ FROM ubuntu:18.04 as builder
MAINTAINER Howard Butler <howard@hobu.co>
-ARG PROJ_VERSION=master
ARG DESTDIR="/build"
# Setup build env
RUN apt-get update -y \
&& apt-get install -y --fix-missing --no-install-recommends \
software-properties-common build-essential ca-certificates \
- git make cmake wget unzip libtool automake \
+ make cmake wget unzip libtool automake \
zlib1g-dev libsqlite3-dev pkg-config sqlite3 libcurl4-gnutls-dev \
libtiff5-dev
-RUN git clone --depth 1 --single-branch https://github.com/OSGeo/PROJ.git \
- && cd PROJ \
+COPY . /PROJ
+
+RUN cd /PROJ \
&& ./autogen.sh \
&& ./configure --prefix=/usr \
&& make -j$(nproc) \