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

Jean Meurice's avatar
Jean Meurice committed
8

ham's avatar
ham committed
9
10
11
12
FROM openjdk:8

WORKDIR /app

Hengwen Zhang's avatar
Hengwen Zhang committed
13
14
15
16
17
18
RUN apt-get update && \
    apt-get install -y --no-install-recommends libxext6 libxrender1 libxtst6 && \
    rm -rf /var/lib/apt/lists/* && \
    echo "export LD_LIBRARY_PATH=/usr/local/openjdk-8/jre/lib/amd64"  > ~/.bashrc


Jean Meurice's avatar
Jean Meurice committed
19
COPY rmi-model-server.jar ./rmi-model-server.jar
hengwen's avatar
hengwen committed
20
COPY ./autopilots/ ./autopilots/
ham's avatar
ham committed
21

Hengwen Zhang's avatar
Hengwen Zhang committed
22
CMD exec bash -c "source ~/.bashrc && java -jar rmi-model-server.jar -Djava.rmi.server.hostname=localhost port=10101 autopilots_folder=autopilots no-zookeeper \
Hengwen Zhang's avatar
Hengwen Zhang committed
23
 no_time os=windows"