FROM openjdk:8u342-slim LABEL Author="axzsd" \ Email="atva725@qq.com" \ Description="智慧涉路作业平台视频WVP" WORKDIR /opt COPY target/*.jar app.jar ENV SPRING_PROFILES_ACTIVE="dev" ENV JAVA_OPTIONS "-Xms512m -Xmx1024m \ -Dfile.encoding=UTF-8 \ -Djava.awt.headless=true \ -Dsun.net.client.defaultConnectTimeout=10000 \ -Dsun.net.client.defaultReadTimeout=30000" EXPOSE 80 5061 ENTRYPOINT ["sh","-c","java -jar $JAVA_OPTIONS -Dspring.profiles.active=${SPRING_PROFILES_ACTIVE} app.jar"]