Dockerfile 662 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
Jean Meurice's avatar
Jean Meurice committed
20
COPY ./softwares/ ./softwares/
ham's avatar
ham committed
21

Jean Meurice's avatar
Jean Meurice committed
22
CMD exec bash -c "source ~/.bashrc && java -jar -Djava.rmi.server.hostname=localhost rmi-model-server.jar port=10101 softwares_folder=softwares no-zookeeper"