-
Notifications
You must be signed in to change notification settings - Fork 808
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dockerfile: make it non-git dependent, so that it can work in branche…
…s, and Docker Hub builds
- Loading branch information
Showing
2 changed files
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.git | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,19 +5,19 @@ FROM ubuntu:18.04 as builder | |
|
||
MAINTAINER Howard Butler <[email protected]> | ||
|
||
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) \ | ||
|