FROM frolvlad/alpine-java:jdk8-slim ENV LANG en_US.utf8 ADD target/vend-api.jar /app.jar EXPOSE 8802 RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime RUN echo 'Asia/Shanghai' >/etc/timezone # 运行jar包 ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-Dspring.profiles.active=test","-Dfile.encoding=UTF-8","-jar","/app.jar"]