Dockerfile 624 Bytes
Newer Older
Jean Meurice's avatar
Jean Meurice committed
1 2 3 4 5 6 7
#
# (c) https://github.com/MontiCore/monticore
#
# The license generally applicable for this project
# can be found under https://github.com/MontiCore/monticore.
#

hengwen's avatar
hengwen committed
8
FROM openjdk:8-jdk
9 10 11

WORKDIR /app

12
RUN apt-get update && \
hengwen's avatar
hengwen committed
13 14
    apt-get install -y --no-install-recommends metis && \
    rm -rf /var/lib/apt/lists/*
15

hengwen's avatar
Fix CI  
hengwen committed
16
COPY --from=montisim-server-builder:latest /app/restful/target/restful.jar ./app.jar
hengwen's avatar
hengwen committed
17 18
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
19

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