Skip to content

Commit

Permalink
fix(docker): remove unecessary client build, build source in javafx i…
Browse files Browse the repository at this point in the history
…mage
  • Loading branch information
maybeanerd committed Sep 25, 2024
1 parent 8b26d6e commit 4313373
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 4313373

Please sign in to comment.