Skip to content

Commit

Permalink
Dockerfile: make it non-git dependent, so that it can work in branche…
Browse files Browse the repository at this point in the history
…s, and Docker Hub builds
  • Loading branch information
rouault committed Feb 9, 2020
1 parent 40ca9b0 commit 8c9ed02
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.git
build
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down

0 comments on commit 8c9ed02

Please sign in to comment.