feat: 更新打包文件
This commit is contained in:
@@ -4,6 +4,11 @@ FROM eclipse-temurin:21-jdk AS builder
|
|||||||
# 添加构建参数,默认使用标准模型
|
# 添加构建参数,默认使用标准模型
|
||||||
ARG VOSK_MODEL_SIZE=standard
|
ARG VOSK_MODEL_SIZE=standard
|
||||||
|
|
||||||
|
# ===== 新增:替换为国内镜像源 =====
|
||||||
|
RUN sed -i 's@archive.ubuntu.com@mirrors.aliyun.com@g' /etc/apt/sources.list.d/ubuntu.sources 2>/dev/null || \
|
||||||
|
sed -i 's@archive.ubuntu.com@mirrors.aliyun.com@g' /etc/apt/sources.list 2>/dev/null || \
|
||||||
|
true
|
||||||
|
|
||||||
# 安装必要的构建工具
|
# 安装必要的构建工具
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
maven \
|
maven \
|
||||||
@@ -12,6 +17,25 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
curl \
|
curl \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# ===== 新增:配置 Maven 使用阿里云镜像 =====
|
||||||
|
RUN mkdir -p /root/.m2 && \
|
||||||
|
cat > /root/.m2/settings.xml << 'EOF'
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
|
||||||
|
http://maven.apache.org/xsd/settings-1.0.0.xsd">
|
||||||
|
<mirrors>
|
||||||
|
<mirror>
|
||||||
|
<id>aliyun-maven</id>
|
||||||
|
<mirrorOf>central</mirrorOf>
|
||||||
|
<name>Aliyun Maven</name>
|
||||||
|
<url>https://maven.aliyun.com/repository/public</url>
|
||||||
|
</mirror>
|
||||||
|
</mirrors>
|
||||||
|
</settings>
|
||||||
|
EOF
|
||||||
|
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
|
|
||||||
# 复制源代码
|
# 复制源代码
|
||||||
|
|||||||
909
db/init.sql
909
db/init.sql
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user