Refactor project structure and update Maven configuration for CRM service
This commit is contained in:
parent
fe631c8d86
commit
0ed7544a5d
@ -1,11 +1,17 @@
|
||||
# 使用阿里云镜像源的 OpenJDK
|
||||
FROM docker.xuanyuan.me/openjdk:17
|
||||
|
||||
|
||||
# 设置时区和安装必要工具
|
||||
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
|
||||
echo 'Asia/Shanghai' >/etc/timezone && \
|
||||
apk add --no-cache curl
|
||||
# 检测系统类型并使用相应的包管理器
|
||||
RUN if [ -f /etc/alpine-release ]; then \
|
||||
apk add --no-cache curl tzdata; \
|
||||
elif [ -f /etc/debian_version ]; then \
|
||||
apt-get update && apt-get install -y curl tzdata && rm -rf /var/lib/apt/lists/*; \
|
||||
elif [ -f /etc/redhat-release ]; then \
|
||||
yum install -y curl tzdata || dnf install -y curl tzdata; \
|
||||
fi && \
|
||||
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
|
||||
echo 'Asia/Shanghai' >/etc/timezone
|
||||
|
||||
# 复制 jar 包
|
||||
COPY ./target/crm-mcp-*.jar /app/crm-mcp.jar
|
||||
|
Loading…
x
Reference in New Issue
Block a user