forked from mapfish/mapfish-print
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (23 loc) · 939 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM gradle:6.6-jdk11 AS builder
RUN apt update
RUN apt install --yes fonts-liberation gettext curl
RUN gradle --version
WORKDIR /src
COPY gradle/ ./gradle/
COPY gradle.properties build.gradle settings.gradle CI.asc ./
COPY examples/build.gradle ./examples/
COPY docs/build.gradle ./docs/
COPY publish/build.gradle ./publish/
COPY core ./core
COPY checkstyle_* ./
# '&& touch success || true' is a trick to be able to get out some artifacts
RUN gradle :core:build :core:explodedWar :core:libSourcesJar :core:libJavadocJar && touch success || true
ARG GIT_HEAD
ENV GIT_HEAD=${GIT_HEAD}
COPY publish ./publish
RUN [ -e success ] && gradle :publish:build && touch success-publish || true
COPY examples ./examples
COPY docs ./docs
RUN [ -e success ] && gradle :examples:build buildDocs && touch success-examples-docs || true
FROM builder AS test-builder
RUN [ -e success ] && [ -e success-publish ] && [ -e success-examples-docs ]