Skip to content

Commit 51b31de

Browse files
committed
#130: Add additional external jar dependencies to docker image
1 parent f62de10 commit 51b31de

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Diff for: docker/spatial-service/Dockerfile

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
ARG BUILDPLATFORM=linux/amd64
22
FROM --platform=${BUILDPLATFORM} custom-gradle AS builder
33

4-
54
# ARG VERSION=2.1.5
65
# ARG SOURCE=https://github.com/AtlasOfLivingAustralia/spatial-service.git
76

@@ -32,6 +31,13 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
3231
gettext-base \
3332
gdal-bin
3433

34+
# Libraries require linking from <data.dir>/modelling/maxent because the path is required to be a subfolder of the data directory
35+
RUN mkdir -p /libs \
36+
&& curl -L https://nexus.ala.org.au/repository/releases/au/org/ala/spatial/ala-aloc/1.0/ala-aloc-1.0.jar -o /libs/aloc.jar \
37+
&& curl https://biodiversiteitsportaal-dev-backups.s3.eu-west-1.amazonaws.com/maxent.zip -o /libs/maxent.zip \
38+
&& unzip -p /libs/maxent.zip maxent/maxent.jar -d libs \
39+
&& rm /libs/maxent.zip
40+
3541
# ARG VERSION=2.1.5
3642
ARG VERSION=2.1.6-SNAPSHOT
3743
ARG COMMIT=a85a6b51abb2203d3e242e726965eb7f59eb98c1

0 commit comments

Comments
 (0)