From ca366bc80274e169830cb6ce0cb436b9b3de6c82 Mon Sep 17 00:00:00 2001 From: terrfly Date: Tue, 5 Mar 2024 10:37:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=89=E4=B8=AA=E7=B3=BB=E7=BB=9F=E7=9A=84do?= =?UTF-8?q?ckerfile=E6=96=87=E4=BB=B6=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jeepay-manager/Dockerfile | 36 ++++++++++++++++++++++++++++++++++++ jeepay-merchant/Dockerfile | 36 ++++++++++++++++++++++++++++++++++++ jeepay-payment/Dockerfile | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 108 insertions(+) create mode 100644 jeepay-manager/Dockerfile create mode 100644 jeepay-merchant/Dockerfile create mode 100644 jeepay-payment/Dockerfile diff --git a/jeepay-manager/Dockerfile b/jeepay-manager/Dockerfile new file mode 100644 index 0000000..878fad3 --- /dev/null +++ b/jeepay-manager/Dockerfile @@ -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 ------ + + + + diff --git a/jeepay-merchant/Dockerfile b/jeepay-merchant/Dockerfile new file mode 100644 index 0000000..dfd5819 --- /dev/null +++ b/jeepay-merchant/Dockerfile @@ -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 ------ + + + + diff --git a/jeepay-payment/Dockerfile b/jeepay-payment/Dockerfile new file mode 100644 index 0000000..b4cba54 --- /dev/null +++ b/jeepay-payment/Dockerfile @@ -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 ------ + + + +