Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
黄南光
/
wiki_knowledge
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b4004ce6
authored
Jun 12, 2026
by
黄南光
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改docker_file
1 parent
11b87051
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
Dockerfile
frontend/package.json
Dockerfile
View file @
b4004ce
...
@@ -3,6 +3,12 @@ FROM python:3.10-slim
...
@@ -3,6 +3,12 @@ FROM python:3.10-slim
WORKDIR
/app
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 可能需要的库
# 安装必要的系统依赖,包括 mysqlclient 和 PyMuPDF 可能需要的库
RUN
apt-get update
&&
apt-get install -y --no-install-recommends
\
RUN
apt-get update
&&
apt-get install -y --no-install-recommends
\
build-essential
\
build-essential
\
...
...
frontend/package.json
View file @
b4004ce
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
"version"
:
"0.1.0"
,
"version"
:
"0.1.0"
,
"private"
:
true
,
"private"
:
true
,
"scripts"
:
{
"scripts"
:
{
"dev"
:
"next dev -H 0.0.0.0"
,
"dev"
:
"next dev -H 0.0.0.0
--webpack
"
,
"build"
:
"next build"
,
"build"
:
"next build"
,
"start"
:
"next start -H 0.0.0.0"
,
"start"
:
"next start -H 0.0.0.0"
,
"lint"
:
"eslint"
"lint"
:
"eslint"
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment