wms修改打包组件和docker文件
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
# 基础镜像
|
||||||
|
FROM arm64v8/openjdk:8
|
||||||
|
# author
|
||||||
|
MAINTAINER manhuoda
|
||||||
|
#指定东八区时区
|
||||||
|
ENV TZ Asia/Shanghai
|
||||||
|
#指定utf-8编码格
|
||||||
|
ENV JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF-8"
|
||||||
|
# VOLUME 指定了临时文件目录为/tmp。
|
||||||
|
# 其效果是在主机 /var/lib/docker 目录下创建了一个临时文件,并链接到容器的/tmp
|
||||||
|
VOLUME /tmp
|
||||||
|
#将当前mhd_special_logistics.jar 复制到容器根目录下
|
||||||
|
ADD mhd_wms.jar mhd_wms.jar
|
||||||
|
#暴露容器端口 Docker镜像告知Docker宿主机应用监听了端口
|
||||||
|
EXPOSE 8017
|
||||||
|
# 运行jar包
|
||||||
|
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-Xms1000m", "-Xmx1500m","-jar","/mhd_wms.jar"]
|
||||||
+13
-1
@@ -166,5 +166,17 @@
|
|||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>mhd_wms</id>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.spotify</groupId>
|
||||||
|
<artifactId>dockerfile-maven-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
Reference in New Issue
Block a user