add docker

This commit is contained in:
caiyuchao committed 2025-04-15 04:20:49 +00:00
1 parent 3c15e9d282
commit f3040ecf67
3 files changed
+28 -1

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
# 基础镜像
FROM openjdk:8-jre
# author
LABEL org.wfc.image.authors="wfc@wfc.org"
# 挂载目录
VOLUME /opt/wfc
# 创建目录
RUN mkdir -p /opt/wfc
# 指定路径
WORKDIR /opt/wfc
# 复制jar文件到路径
COPY target/wfc-license-serve-1.0.0.jar /opt/wfc/wfc-license-serve.jar
# 启动licese-serve服务
ENTRYPOINT ["java","-jar","wfc-license-serve.jar"]