forked from binkley/modern-java-practices
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEarthfile
More file actions
31 lines (27 loc) · 642 Bytes
/
Earthfile
File metadata and controls
31 lines (27 loc) · 642 Bytes
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
VERSION 0.7
FROM eclipse-temurin:21-jdk-jammy
WORKDIR /code
build-with-gradle:
COPY gradlew .
COPY gradle gradle
COPY gradle.properties .
COPY settings.gradle .
COPY build.gradle .
COPY config config
COPY src src
RUN ./gradlew clean build
run-with-gradle:
FROM +build-with-gradle
COPY run-with-gradle.sh .
RUN ./run-with-gradle.sh
build-with-maven:
COPY mvnw .
COPY .mvn .mvn
COPY pom.xml .
COPY config config
COPY src src
RUN ./mvnw --no-transfer-progress clean verify
run-with-maven:
FROM +build-with-maven
COPY run-with-maven.sh .
RUN ./run-with-maven.sh