Files
AuthCenterConsoleApp/Dockerfile

15 lines
511 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 基础镜像JDK11 轻量版
FROM openjdk:11-jre-slim
LABEL author="ZhanGSKen<zhangsken@qq.com>"
WORKDIR /sdcard/WinBoLLStudio/AuthCenterConsoleApp
# 关键修复:加./ 表示项目根目录的target避免路径找不到
COPY ./target/AuthCenter-1.0.0.jar authcenter.jar
# 暴露端口和你写的一致之前是8080现在改999了脚本也要同步
EXPOSE 999
# 启动命令(保留你的参数)
ENTRYPOINT ["java", "-Dfile.encoding=UTF-8", "-jar", "authcenter.jar", "-log:SEVERE"]