CatchTheLettersBackend/Dockerfile

15 lines
328 B
Docker
Raw Normal View History

2024-04-14 11:56:42 +00:00
# 添加 Java 17 镜像来源
FROM openjdk:17
# springboot 端口
EXPOSE 3536
# 作者
LABEL maintainer="spyn <2960474346@qq.com>"
# 添加 Spring Boot 包
ADD target/catch-the-letters-*.jar app.jar
# 执行启动命令
ENTRYPOINT ["java","-Duser.timezone=GMT+8","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]