---初始化项目
This commit is contained in:
18
powerjob-worker-samples/Dockerfile
Normal file
18
powerjob-worker-samples/Dockerfile
Normal file
@ -0,0 +1,18 @@
|
||||
# 基础镜像(支持 amd64 & arm64),based on Ubuntu 18.04.4 LTS
|
||||
FROM adoptopenjdk:8-jdk-hotspot
|
||||
# 维护者
|
||||
MAINTAINER dudiao(idudiao@163.com)
|
||||
# 设置时区
|
||||
ENV TZ=Asia/Shanghai
|
||||
|
||||
# 设置其他环境变量
|
||||
ENV APP_NAME=powerjob-worker-samples
|
||||
# 传递 SpringBoot 启动参数 和 JVM参数
|
||||
ENV PARAMS=""
|
||||
ENV JVMOPTIONS=""
|
||||
# 将应用 jar 包拷入 docker
|
||||
COPY target/powerjob-worker-samples-*.jar /powerjob-worker-samples.jar
|
||||
# 暴露端口(HTTP + AKKA)
|
||||
EXPOSE 8081 27777
|
||||
# 启动应用
|
||||
ENTRYPOINT ["sh","-c","java $JVMOPTIONS -jar /powerjob-worker-samples.jar $PARAMS"]
|
||||
Reference in New Issue
Block a user