Dockerfile 455 Bytes
Newer Older
hengwen's avatar
hengwen committed
1
FROM openjdk:8-jdk
2 3 4

WORKDIR /app

5
RUN apt-get update && \
hengwen's avatar
Fix CI  
hengwen committed
6
    apt-get install -y --no-install-recommends openjfx metis && \
7 8
    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/
9

hengwen's avatar
Fix CI  
hengwen committed
10
COPY --from=montisim-server-builder:latest /app/restful/target/restful.jar ./app.jar
hengwen's avatar
hengwen committed
11
COPY --from=montisim-server-builder:latest ./app/restful/target/classes/app.db ./app.db
12

hengwen's avatar
hengwen committed
13
CMD java -jar app.jar