Commit 983e3537 authored by hengwen's avatar hengwen

Remove openjfx

parent c282aaed
......@@ -5,9 +5,9 @@ WORKDIR /app
COPY . .
RUN apt-get update && \
apt-get install -y --no-install-recommends openjfx metis && \
apt-get install -y --no-install-recommends metis && \
rm -rf /var/lib/apt/lists/* && \
cp /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/jfxrt.jar /usr/local/openjdk-8/jre/lib/ext/ && \
mvn install -s settings.xml -DskipTests && \
mvn install -s settings.xml -DskipTests && \
cp rpc/target/rpc-*-jar-with-dependencies.jar rpc/target/rpc.jar && \
cp restful/target/restful-*.jar restful/target/restful.jar
find restful/target -regex '.*restful-[0-9.]+\.jar' | \
xargs -i cp {} restful/target/restful.jar
......@@ -3,11 +3,11 @@ FROM openjdk:8-jdk
WORKDIR /app
RUN apt-get update && \
apt-get install -y --no-install-recommends openjfx metis && \
rm -rf /var/lib/apt/lists/* && \
cp /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/jfxrt.jar /usr/local/openjdk-8/jre/lib/ext/
apt-get install -y --no-install-recommends metis && \
rm -rf /var/lib/apt/lists/*
COPY --from=montisim-server-builder:latest /app/restful/target/restful.jar ./app.jar
COPY --from=montisim-server-builder:latest ./app/restful/target/classes/app.db ./app.db
COPY --from=montisim-server-builder:latest ./app/restful/target/classes/app.db ./classes/app.db
COPY --from=montisim-server-builder:latest ./app/restful/target/classes/default.car ./classes/default.car
CMD java -jar app.jar
......@@ -2,11 +2,6 @@ FROM openjdk:8-jdk
WORKDIR /app
RUN apt-get update && \
apt-get install -y --no-install-recommends openjfx && \
rm -rf /var/lib/apt/lists/* && \
cp /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/jfxrt.jar /usr/local/openjdk-8/jre/lib/ext/
COPY --from=montisim-server-builder:latest /app/rpc/target/rpc.jar ./rpc.jar
COPY ./*.fmu ./lib/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment