From 4313373bc2ccfddd249c7c7f8e71b54a329f3fa5 Mon Sep 17 00:00:00 2001 From: Sebastian Di Luzio Date: Sun, 8 Sep 2024 14:45:22 +0200 Subject: [PATCH] fix(docker): remove unecessary client build, build source in javafx image --- Dockerfile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index b261559b87f1..3f30b40d699b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,14 @@ -FROM maven:3.9 AS builder +FROM odinuge/maven-javafx:3-jdk-8 AS builder + +RUN echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.list + +# additional tools +RUN apt update && apt install -y \ + build-essential COPY . . RUN mvn clean install -DskipTests \ - && cd ./Mage.Client \ - && mvn package assembly:single \ - && cd ../Mage.Server \ + && cd ./Mage.Server \ && mvn package assembly:single FROM openjdk:8-jre