🎈 perf: 优化开发

dockerfile移除网络下载
添加前端说明文档
修改静态文件调用
This commit is contained in:
kalicyh
2025-02-20 10:56:51 +08:00
parent 68accb7636
commit 5264bfd258
7 changed files with 98 additions and 24 deletions
+1 -7
View File
@@ -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
# 第三阶段:生产镜像