From fd3f4932dfcb9bbd9d86a26a7d18bfad564e8077 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=91=E5=B9=B4=E6=A2=A6=E4=B8=8E=E7=A0=96?= <2847127106@qq.com> Date: Sat, 27 Jul 2024 10:49:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 1 + src/main/resources/DockerFile | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 src/main/resources/DockerFile diff --git a/pom.xml b/pom.xml index 3c3b48c..f28bdf0 100644 --- a/pom.xml +++ b/pom.xml @@ -9,6 +9,7 @@ 4.0.0 cloud-gateway + 1.0.0 cloud-gateway网关模块 diff --git a/src/main/resources/DockerFile b/src/main/resources/DockerFile new file mode 100644 index 0000000..cb111bc --- /dev/null +++ b/src/main/resources/DockerFile @@ -0,0 +1,7 @@ +FROM openjdk:17-jre-slim + +WORKDIR /home/images/deploy/gateway + +COPY cloud-gateway.jar /home/images/deploy/gateway + +ENTRYPOINT ["java","-jar","/home/images/deploy/gateway/cloud-gateway.jar"]