Commit b4004ce6 by 黄南光

修改docker_file

1 parent 11b87051
......@@ -3,6 +3,12 @@ FROM python:3.10-slim
WORKDIR /app
# 替换 APT 源为清华镜像以加速国内构建
RUN sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list.d/debian.sources 2>/dev/null || true \
&& sed -i 's/security.debian.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list.d/debian.sources 2>/dev/null || true \
&& sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list 2>/dev/null || true \
&& sed -i 's/security.debian.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list 2>/dev/null || true
# 安装必要的系统依赖,包括 mysqlclient 和 PyMuPDF 可能需要的库
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
......
......@@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev -H 0.0.0.0",
"dev": "next dev -H 0.0.0.0 --webpack",
"build": "next build",
"start": "next start -H 0.0.0.0",
"lint": "eslint"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!