From acbe1f75d534ef819436f30fa99c110474684b15 Mon Sep 17 00:00:00 2001 From: dashan Date: Fri, 17 Nov 2023 03:07:55 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'docker/ds/gateway/Dockerf?= =?UTF-8?q?ile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/ds/gateway/Dockerfile | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/docker/ds/gateway/Dockerfile b/docker/ds/gateway/Dockerfile index 20fa468..5008c5e 100644 --- a/docker/ds/gateway/Dockerfile +++ b/docker/ds/gateway/Dockerfile @@ -1 +1,16 @@ -FROM openjdk:17 +#基础镜像 +FROM openjdk:17-jre +# author +MAINTAINER dashan +# 挂载目录 +VOLUME /home/dashan +# 创建目录 +RUN mkdir -p /home/dashan +# 指定路径 +WORKDIR /home/dashan +# 复制jar文件到路径 +COPY ./jar/ds-gateway.jar /home/dashan/ds-gateway.jar +#暴漏端口 +EXPOSE 8080 +# 启动网关服务 +ENTRYPOINT ["java","-jar","ds-gateway.jar"] \ No newline at end of file