FROM registry.cn-hangzhou.aliyuncs.com/docker-zhili/java:8-jre-alpine ENV PRO_NAME=pdms-oss PRO_ENV=dev TZ="Asia/Shanghai" ADD ./target/pdms-oss-api-0.0.1-SNAPSHOT.jar /home/App.jar CMD ["/bin/sh","-c","/usr/bin/java -server -jar /home/App.jar --spring.profiles.active=${PRO_ENV} --spring.application.name=${PRO_NAME}"]