mirror of
https://github.com/anthonyraymond/joal.git
synced 2024-11-10 09:02:31 +08:00
28 lines
636 B
Docker
28 lines
636 B
Docker
# Builder image with jdk
|
|
FROM maven:3.8.1-adoptopenjdk-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 adoptopenjdk:11.0.11_9-jre-hotspot
|
|
|
|
LABEL name="joal"
|
|
LABEL maintainer="joal.contact@gmail.com"
|
|
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"]
|