2020-05-20 18:56:57 +08:00

16 lines
565 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 没有 javac 需求,用 JRE 镜像
FROM openjdk:8-jre-slim
MAINTAINER tengjiqi@gmail.com
ENV APP_NAME=oh-my-scheduler-worker-agent
ENV PARAMS=""
COPY oms-agent.jar /oms-agent.jar
# 暴露端口HTTP + AKKA-Server + AKKA-Client
EXPOSE 7700 10086 27777
# 创建 docker 文件目录(盲猜这是用户目录)
RUN mkdir -p /root/oms-agent
# 挂载数据卷,将文件直接输出到宿主机(注意,此处挂载的是匿名卷,即在宿主机位置随机)
VOLUME /root/oms
# 启动应用
ENTRYPOINT ["sh","-c","java -jar /oms-agent.jar $PARAMS"]