You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
651 B
Docker
14 lines
651 B
Docker
# 该镜像需要依赖的基础镜像
|
|
FROM adoptopenjdk:11-jre-openj9
|
|
WORKDIR /root/workspace
|
|
# 将当前目录下的jar包复制到docker容器的/目录下
|
|
ADD waynboot-mobile-api/target/waynboot-mobile-api-1.1.0.jar /opt/waynboot-mall/waynboot-mobile-api-1.1.0.jar
|
|
# 运行过程中创建一个mall-tiny-docker-file.jar文件
|
|
RUN bash -c 'touch /opt/waynboot-mall/waynboot-mobile-api-1.1.0.jar'
|
|
# 声明服务运行在8080端口
|
|
EXPOSE 82
|
|
# 指定docker容器启动时运行jar包
|
|
ENTRYPOINT ["sh", "-c", "exec java -jar -Xms1024m -Xmx1024m -Xss512k /opt/waynboot-mall/waynboot-mobile-api-1.1.0.jar"]
|
|
# 指定维护者的名字
|
|
MAINTAINER wayn111
|