FROM registry.cn-shanghai.aliyuncs.com/winhc-back/openjdk:8-jre-alpine3.9 RUN echo "http://mirrors.aliyun.com/alpine/v3.9/main/" > /etc/apk/repositories \ && echo "http://mirrors.aliyun.com/alpine/v3.9/community" >> /etc/apk/repositories \ && apk add --no-cache procps curl bash tzdata \ && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ && echo "Asia/Shanghai" > /etc/timezone VOLUME /tmp COPY target/*.jar app.jar EXPOSE 8080 EXPOSE 8081 ENV APP_OPTS="" ENTRYPOINT ["sh", "-c", "java -Duser.timezone=Asia/Shanghai -Djava.security.egd=file:/dev/./urandom -Dserver.port=8080 -jar /app.jar $APP_OPTS"]