Update dockerfile

This commit is contained in:
zhangqiyong 2023-10-21 08:52:58 +00:00
parent 96397eb2a0
commit db78e45a22

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=test"]
CMD ["sh","-c", "java -jar iot-gateway.jar --spring.profiles.active=prod"]