FROM anapsix/alpine-java:8_server-jre_unlimited

MAINTAINER Lion Li

RUN mkdir -p /nexo/model/logs  \
    /nexo/model/temp  \
    /nexo/skywalking/agent

WORKDIR /nexo/model

ENV SERVER_PORT=9402

EXPOSE ${SERVER_PORT}

ENTRYPOINT ["java", \
            "-Djava.security.egd=file:/dev/./urandom", \
            "-Dserver.port=${SERVER_PORT}", \
            "-Dfile.encoding=UTF-8", \
            "-Duser.timezone=Asia/Shanghai", \
            "-jar", "app.jar"]
