2024-01-13 13:29:20 +08:00

18 lines
393 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.

# 指定是基于哪个基础镜像
FROM openjdk:8
# 作者信息
MAINTAINER PNKX
# 挂载点声明
VOLUME /tmp
# 将本地的一个文件或目录,拷贝到容器的文件或目录里
ADD pnkx-admin.jar pnkx-admin.jar
# 将容器的8000端口暴露给外部访问。
EXPOSE 8068
# 当容器运行起来时执行使用运行jar的指令
ENTRYPOINT ["java", "-jar", "pnkx-admin.jar"]