mirror of
https://github.com/jeequan/jeepay
synced 2024-11-17 14:58:04 +08:00
三个系统的dockerfile文件;
This commit is contained in:
parent
8b01cd53f3
commit
ca366bc802
36
jeepay-manager/Dockerfile
Normal file
36
jeepay-manager/Dockerfile
Normal file
@ -0,0 +1,36 @@
|
||||
#
|
||||
# jeepay-manager(管理平台) java程序镜像构建脚本 .Power by terrfly
|
||||
#
|
||||
|
||||
# ------ START ------
|
||||
|
||||
# 基础镜像来自: https://hub.docker.com/ 官方OFFICIAL
|
||||
FROM openjdk:8u342-jdk
|
||||
|
||||
MAINTAINER Terrfly
|
||||
|
||||
# 对外映射的端口 ( 不明确EXPOSE 也不影响映射 )
|
||||
EXPOSE 9217
|
||||
|
||||
# 挂载目录 "/jeepayhomes/service/app/application.yml 这个文件不能写到VOLUME中, 否则将映射成为了目录导致启动异常。
|
||||
VOLUME ["/jeepayhomes/service/logs", "/jeepayhomes/service/uploads"]
|
||||
|
||||
# 使用jeepay用户启动。 ( 需要 RUN adduser等一系列操作 )
|
||||
# USER jeepay:jeepay
|
||||
|
||||
# 创建目录
|
||||
RUN mkdir /jeepayhomes/service/app -p
|
||||
|
||||
# 安装
|
||||
COPY ./target/jeepay-manager.jar /jeepayhomes/service/app/jeepay-manager.jar
|
||||
|
||||
# 设置工作目录
|
||||
WORKDIR /jeepayhomes/service/app
|
||||
|
||||
CMD ["java", "-jar", "jeepay-manager.jar"]
|
||||
|
||||
# ------ END ------
|
||||
|
||||
|
||||
|
||||
|
36
jeepay-merchant/Dockerfile
Normal file
36
jeepay-merchant/Dockerfile
Normal file
@ -0,0 +1,36 @@
|
||||
#
|
||||
# jeepay-merchant(商户平台) java程序镜像构建脚本 .Power by terrfly
|
||||
#
|
||||
|
||||
# ------ START ------
|
||||
|
||||
# 基础镜像来自: https://hub.docker.com/ 官方OFFICIAL
|
||||
FROM openjdk:8u342-jdk
|
||||
|
||||
MAINTAINER Terrfly
|
||||
|
||||
# 对外映射的端口 ( 不明确EXPOSE 也不影响映射 )
|
||||
EXPOSE 9218
|
||||
|
||||
# 挂载目录 "/jeepayhomes/service/app/application.yml 这个文件不能写到VOLUME中, 否则将映射成为了目录导致启动异常。
|
||||
VOLUME ["/jeepayhomes/service/logs", "/jeepayhomes/service/uploads"]
|
||||
|
||||
# 使用jeepay用户启动。 ( 需要 RUN adduser等一系列操作 )
|
||||
# USER jeepay:jeepay
|
||||
|
||||
# 创建目录
|
||||
RUN mkdir /jeepayhomes/service/app -p
|
||||
|
||||
# 安装
|
||||
COPY ./target/jeepay-merchant.jar /jeepayhomes/service/app/jeepay-merchant.jar
|
||||
|
||||
# 设置工作目录
|
||||
WORKDIR /jeepayhomes/service/app
|
||||
|
||||
CMD ["java", "-jar", "jeepay-merchant.jar"]
|
||||
|
||||
# ------ END ------
|
||||
|
||||
|
||||
|
||||
|
36
jeepay-payment/Dockerfile
Normal file
36
jeepay-payment/Dockerfile
Normal file
@ -0,0 +1,36 @@
|
||||
#
|
||||
# jeepay-payment(商户平台) java程序镜像构建脚本 .Power by terrfly
|
||||
#
|
||||
|
||||
# ------ START ------
|
||||
|
||||
# 基础镜像来自: https://hub.docker.com/ 官方OFFICIAL
|
||||
FROM openjdk:8u342-jdk
|
||||
|
||||
MAINTAINER Terrfly
|
||||
|
||||
# 对外映射的端口 ( 不明确EXPOSE 也不影响映射 )
|
||||
EXPOSE 9216
|
||||
|
||||
# 挂载目录 "/jeepayhomes/service/app/application.yml 这个文件不能写到VOLUME中, 否则将映射成为了目录导致启动异常。
|
||||
VOLUME ["/jeepayhomes/service/logs", "/jeepayhomes/service/uploads"]
|
||||
|
||||
# 使用jeepay用户启动。 ( 需要 RUN adduser等一系列操作 )
|
||||
# USER jeepay:jeepay
|
||||
|
||||
# 创建目录
|
||||
RUN mkdir /jeepayhomes/service/app -p
|
||||
|
||||
# 安装
|
||||
COPY ./target/jeepay-payment.jar /jeepayhomes/service/app/jeepay-payment.jar
|
||||
|
||||
# 设置工作目录
|
||||
WORKDIR /jeepayhomes/service/app
|
||||
|
||||
CMD ["java", "-jar", "jeepay-payment.jar"]
|
||||
|
||||
# ------ END ------
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user