diff --git a/docker/modules/websocket/dockerfile_test b/docker/modules/websocket/dockerfile_test new file mode 100644 index 0000000..68a8ac7 --- /dev/null +++ b/docker/modules/websocket/dockerfile_test @@ -0,0 +1,16 @@ +# 基础镜像 +FROM openjdk:8-jre +# author +MAINTAINER qiuguo + +# 挂载目录 +VOLUME /home/qiuguo +# 创建目录 +RUN mkdir -p /home/qiuguo +# 指定路径 +WORKDIR /home/qiuguo +# 复制jar文件到路径 +COPY ./jar/iot-box-websocket-api.jar /home/qiuguo/iot-box-websocket-api.jar +# 启动网关服务 +#ENTRYPOINT ["java","-jar","iot-box-websocket-api.jar"] +CMD ["sh","-c", "java -jar iot-box-websocket-api.jar --spring.profiles.active=prod"] diff --git a/iot-modules/iot-box-websocket-api/src/main/resources/bootstrap.yml b/iot-modules/iot-box-websocket-api/src/main/resources/bootstrap.yml index aa084ee..db57474 100644 --- a/iot-modules/iot-box-websocket-api/src/main/resources/bootstrap.yml +++ b/iot-modules/iot-box-websocket-api/src/main/resources/bootstrap.yml @@ -1,7 +1,5 @@ server: port: 8080 spring: - profiles: - active: test application: name: qiuguo-iot-box-websocket \ No newline at end of file