mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-27 09:33:55 +08:00
🎈 perf: 优化开发
dockerfile移除网络下载 添加前端说明文档 修改静态文件调用
This commit is contained in:
+1
-7
@@ -24,13 +24,7 @@ WORKDIR /app
|
||||
COPY requirements.txt .
|
||||
|
||||
# 优化apt安装
|
||||
RUN echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware" > /etc/apt/sources.list && \
|
||||
echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \
|
||||
apt-get update && \
|
||||
apt-get install -y --no-install-recommends gcc libopus-dev ffmpeg && \
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
# 直接使用系统Python
|
||||
pip install --no-cache-dir -r requirements.txt \
|
||||
RUN pip install --no-cache-dir -r requirements.txt \
|
||||
-i https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
|
||||
# 第三阶段:生产镜像
|
||||
|
||||
Reference in New Issue
Block a user