-
Notifications
You must be signed in to change notification settings - Fork 63
/
Dockerfile
28 lines (18 loc) · 636 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
# Builder image with jdk
FROM maven:3.8.3-eclipse-temurin-11 AS build
WORKDIR /build
COPY . /build/
RUN mvn -B --quiet package -DskipTests=true \
&& mkdir /artifact \
&& mv /build/target/jack-of-all-trades-*.jar /artifact/joal.jar
# Actual joal image with jre only
FROM eclipse-temurin:11.0.13_8-jre
LABEL name="joal"
LABEL maintainer="[email protected]"
LABEL url="https://github.com/anthonyraymond/joal"
LABEL vcs-url="https://github.com/anthonyraymond/joal"
WORKDIR /joal/
COPY --from=build /artifact/joal.jar /joal/joal.jar
VOLUME /data
ENTRYPOINT ["java", "-jar", "/joal/joal.jar"]
CMD ["--joal-conf=/data"]