mirror of
https://github.com/Eyre-S/Coeur-Morny-Cono.git
synced 2024-11-25 20:47:38 +08:00
22 lines
467 B
Docker
22 lines
467 B
Docker
|
FROM eclipse-temurin:20-jdk as build
|
||
|
LABEL authors="A.C.Sukazyo Eyre"
|
||
|
|
||
|
COPY . /app/source/
|
||
|
WORKDIR /app
|
||
|
|
||
|
RUN cd ./source \
|
||
|
&& ./gradlew shadowJar -PdockerBuild \
|
||
|
&& cd .. \
|
||
|
&& cp ./source/build/libs/morny-coeur-docker-build.jar ./morny-coeur.jar
|
||
|
#&& rm -r ./source \
|
||
|
#&& rm -r /root/.gradle \
|
||
|
|
||
|
|
||
|
FROM eclipse-temurin:20-jre
|
||
|
|
||
|
COPY --from=build /app/morny-coeur.jar /app/morny-coeur.jar
|
||
|
WORKDIR /app
|
||
|
|
||
|
ENTRYPOINT ["java", "-jar", "morny-coeur.jar"]
|
||
|
CMD ["-q", "-v"]
|