Skip to content

Commit 8c9ed02

Browse files
committed
Dockerfile: make it non-git dependent, so that it can work in branches, and Docker Hub builds
1 parent 40ca9b0 commit 8c9ed02

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.git
2+
build

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ FROM ubuntu:18.04 as builder
55

66
MAINTAINER Howard Butler <howard@hobu.co>
77

8-
ARG PROJ_VERSION=master
98
ARG DESTDIR="/build"
109

1110
# Setup build env
1211
RUN apt-get update -y \
1312
&& apt-get install -y --fix-missing --no-install-recommends \
1413
software-properties-common build-essential ca-certificates \
15-
git make cmake wget unzip libtool automake \
14+
make cmake wget unzip libtool automake \
1615
zlib1g-dev libsqlite3-dev pkg-config sqlite3 libcurl4-gnutls-dev \
1716
libtiff5-dev
1817

19-
RUN git clone --depth 1 --single-branch https://github.com/OSGeo/PROJ.git \
20-
&& cd PROJ \
18+
COPY . /PROJ
19+
20+
RUN cd /PROJ \
2121
&& ./autogen.sh \
2222
&& ./configure --prefix=/usr \
2323
&& make -j$(nproc) \

0 commit comments

Comments
 (0)