修改gateway docker文件

This commit is contained in:
wulin 2023-12-05 11:39:06 +08:00
parent 9a3c22f576
commit a40b0a7c9b

View File

@ -13,4 +13,4 @@ WORKDIR /home/qiuguo
COPY ./jar/iot-gateway.jar /home/qiuguo/iot-gateway.jar
# 启动网关服务
#ENTRYPOINT ["java","-jar","iot-gateway.jar"]
CMD ["sh","-c", "java -jar iot-gateway.jar --spring.profiles.active=prod"]
CMD ["sh","-c", "java -jar iot-gateway.jar --spring.profiles.active=test"]