Docker sun.awt.FontConfiguration.getVersion java.lang.NullPointerException: null
我是给图片打水印本地成功上了服务器就失败了解决方法切换jdkDockerfile将 FROM openjdk:8-jdk-alpine改为 FROM java:8FROM java:8VOLUME /tmpADD XXX.jar app.jarRUN echo "Asia/shanghai" > /etc/timezoneENTRYPOINT ["java","-Djava.security
·
我是给图片打水印本地成功上了服务器就失败了
解决方法
切换jdk
Dockerfile
将 FROM openjdk:8-jdk-alpine改为 FROM java:8
FROM java:8
VOLUME /tmp
ADD XXX.jar app.jar
RUN echo "Asia/shanghai" > /etc/timezone
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
EXPOSE 9010
更多推荐
已为社区贡献2条内容
所有评论(0)