mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-29 05:09:46 +01:00
build(Dockerfile-web): 添加阿里云镜像源以加速国内构建
- 在 Dockerfile-web 中添加了阿里云 Debian 镜像源 - 通过修改 /etc/apt/sources.list.d/debian.sources 文件实现镜像源替换 -此修改旨在提高国内用户的构建速度
This commit is contained in:
parent
83c7a7e79e
commit
0948ea62e0
1 changed files with 3 additions and 0 deletions
|
|
@ -16,6 +16,9 @@ RUN mvn clean package -Dmaven.test.skip=true
|
|||
# 第三阶段:构建最终镜像
|
||||
FROM eclipse-temurin:21-jdk-jammy
|
||||
|
||||
# if you located in China, you can use aliyun mirror to speed up
|
||||
RUN sed -i 's@deb.debian.org@mirrors.aliyun.com@g' /etc/apt/sources.list.d/debian.sources
|
||||
|
||||
# 安装Nginx并清理缓存
|
||||
RUN apt-get update && \
|
||||
apt-get install -y nginx && \
|
||||
|
|
|
|||
Loading…
Reference in a new issue