snowy/Dockerfile-API

12 lines
331 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters!

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 registry.cn-beijing.aliyuncs.com/mojiong/openjdk:17
# 将本地的 jar 文件添加到容器中并重命名为 app.jar
ADD snowy-web-app/target/snowy-web-app-3.0.0.jar app.jar
# 暴露容器的端口Spring Boot 默认端口为 8080
EXPOSE 82
# 设置容器启动时运行的命令
ENTRYPOINT ["java","-jar","/app.jar"]