This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
FROM openjdk:17-jdk
VOLUME /tmp
#拷贝打包后的jar包并且重命名
ADD build/libs/*.jar app.jar
#容器外露到服务器的端口
EXPOSE 8080
# 为了缩短 Tomcat 的启动时间,添加java.security.egd的系统属性指向/dev/urandom作为 ENTRYPOINT
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom", "-Dserver.port=8080","-jar","/app.jar"]