FROM openjdk:11-jdk LABEL maintainer="研究院研发组 " # 时区修改为东八区 ENV TZ=Asia/Shanghai RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone WORKDIR /app ARG JAR_FILE=target/*.jar ADD ${JAR_FILE} app.jar EXPOSE 8080 ENTRYPOINT ["sh","-c","java -Djava.security.egd=file:/dev/./urandom -jar $JAVA_OPTS app.jar"]