测试不同docker配置
This commit is contained in:
parent
4aea5295e9
commit
cecc439dc5
16
docker/modules/websocket/dockerfile_test
Normal file
16
docker/modules/websocket/dockerfile_test
Normal file
@ -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"]
|
||||
@ -1,7 +1,5 @@
|
||||
server:
|
||||
port: 8080
|
||||
spring:
|
||||
profiles:
|
||||
active: test
|
||||
application:
|
||||
name: qiuguo-iot-box-websocket
|
||||
Loading…
x
Reference in New Issue
Block a user