From e446e12f98d875ec1169c123602f6036ade86f63 Mon Sep 17 00:00:00 2001 From: zhangqy Date: Wed, 20 Sep 2023 09:14:52 +0800 Subject: [PATCH] =?UTF-8?q?[add]=E6=B7=BB=E5=8A=A0dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/qiuguo/gateway/dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 docker/qiuguo/gateway/dockerfile diff --git a/docker/qiuguo/gateway/dockerfile b/docker/qiuguo/gateway/dockerfile new file mode 100644 index 0000000..58c3713 --- /dev/null +++ b/docker/qiuguo/gateway/dockerfile @@ -0,0 +1,15 @@ +# 基础镜像 +FROM openjdk:8-jre +# author +MAINTAINER qiuguo + +# 挂载目录 +VOLUME /home/qiuguo +# 创建目录 +RUN mkdir -p /home/qiuguo +# 指定路径 +WORKDIR /home/qiuguo +# 复制jar文件到路径 +COPY ./jar/iot-gateway.jar /home/qiuguo/iot-gateway.jar +# 启动网关服务 +ENTRYPOINT ["java","-jar","iot-gateway.jar"] \ No newline at end of file