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 11b87051
authored
Jun 12, 2026
by
黄南光
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改docker_file
1 parent
1235aab5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
17 deletions
Dockerfile
frontend/src/app/layout.tsx
Dockerfile
View file @
11b8705
#
使用代理镜像源,解决国内直接拉取 Docker Hub 导致的 metadata 错误
FROM
m.daocloud.io/docker.io/library/
python:3.10-slim
#
直接使用官方 Python 镜像(若国内拉取慢,建议在 Docker Daemon 配置全局镜像加速器)
FROM
python:3.10-slim
WORKDIR
/app
...
...
@@ -14,9 +14,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
COPY requirements.txt .
# 移除 Windows 专用的依赖 (pywin32),然后安装依赖
# 移除 Windows 专用的依赖 (pywin32),然后
使用清华源
安装依赖
RUN
grep -v -i
"pywin32"
requirements.txt > requirements_linux.txt
&&
\
pip install --no-cache-dir -r requirements_linux.txt
pip install -
i https://pypi.tuna.tsinghua.edu.cn/simple -
-no-cache-dir -r requirements_linux.txt
COPY . .
...
...
frontend/src/app/layout.tsx
View file @
11b8705
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
import Sidebar from "@/components/Sidebar";
const geistSans = Geist({
variable: "--font-geist-sans",
subsets: ["latin"],
});
const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
});
export const metadata: Metadata = {
title: "Wiki App",
description: "Enterprise Wiki Application",
...
...
@@ -25,8 +14,8 @@ export default function RootLayout({
}>) {
return (
<html
lang=
"
en
"
className=
{`${geistSans.variable}
${
geistMono
.
variable
}
h-full
antialiased
`}
lang=
"
zh-CN
"
className=
"h-full antialiased font-sans"
>
<body
className=
"min-h-full flex h-screen bg-[#F8FAFC] text-slate-900 font-sans overflow-hidden"
>
<Sidebar
/>
...
...
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