dockerfile
parent
9f4680bc54
commit
c4ed45eb1e
|
@ -0,0 +1,21 @@
|
|||
# |- home
|
||||
# |- app.jar - 启动jar包
|
||||
# |- logs - 日志文件
|
||||
|
||||
# 指定构建镜像的起始镜像
|
||||
FROM anolis-registry.cn-zhangjiakou.cr.aliyuncs.com/openanolis/dragonwell:17.0.4.0.4.8-standard-ga-8.6
|
||||
|
||||
# 定义时区参数
|
||||
ENV TZ=Asia/Shanghai
|
||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo '$TZ' > /etc/timezone
|
||||
|
||||
# 挂载工作目录
|
||||
VOLUME ["/home/logs/cloud-system"]
|
||||
|
||||
# 拷贝执行jar包文件
|
||||
COPY ./target/cloud-system.jar /home/app.jar
|
||||
|
||||
# 构建启动命令
|
||||
ENTRYPOINT ["java","-jar"]
|
||||
CMD ["/home/app.jar"]
|
||||
|
6
pom.xml
6
pom.xml
|
@ -4,12 +4,14 @@
|
|||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>cloud-modules</artifactId>
|
||||
<artifactId>cloud-server-parent</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>cloud-modules-system</artifactId>
|
||||
<artifactId>cloud-system</artifactId>
|
||||
|
||||
<version>1.0.0</version>
|
||||
|
||||
<description>
|
||||
cloud-modules-system系统模块
|
||||
|
|
Loading…
Reference in New Issue