2
0

feat: enhance build and setup

This commit is contained in:
zhangsz
2024-12-30 10:12:54 +08:00
parent c43c799ae0
commit 25f17f91bb
22 changed files with 372 additions and 201 deletions

View File

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