Skip to content

Commit d5b0327

Browse files
committed
feat: add configuration documentation for OneDrive and OpenDAL storage integration
1 parent 9120486 commit d5b0327

File tree

125 files changed

+64
-811
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+64
-811
lines changed

.dockerignore

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,50 @@
1-
*.md
2-
.idea
1+
# Git
32
.git
3+
.gitignore
4+
.gitattributes
5+
6+
# IDE
7+
.idea
8+
.vscode
9+
*.swp
10+
*.swo
11+
12+
# Documentation
13+
*.md
14+
docs/
15+
LICENSE
16+
17+
# Development
18+
.venv
19+
__pycache__
20+
*.pyc
21+
*.pyo
22+
.pytest_cache
23+
.coverage
24+
htmlcov/
25+
26+
# macOS
27+
.DS_Store
28+
._*
29+
30+
# Frontend source (will be built from GitHub)
31+
fcb-fronted/
32+
themes/
33+
34+
# Test files
35+
test_*.py
36+
tests/
37+
38+
# Data (should be mounted as volume)
39+
data/
40+
41+
# GitHub
42+
.github/
43+
44+
# Docker
45+
Dockerfile
46+
docker-compose.yml
47+
.dockerignore
48+
49+
# Claude
50+
.claude/

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ data/.env
158158
# Ignore node_modules
159159
node_modules/
160160

161-
162161
AGENTS.md
163162

164-
dist/
163+
dist/
164+
# Frontend themes (built from GitHub during Docker build)
165+
themes/

Dockerfile

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# 第一阶段:构建前端主题
22
FROM node:18-alpine AS frontend-builder
33

4-
# 安装 git
54
RUN apk add --no-cache git
65

76
WORKDIR /build
@@ -23,27 +22,22 @@ FROM python:3.12-slim-bookworm
2322
LABEL author="Lan"
2423
LABEL email="xzu@live.com"
2524

26-
# 将当前目录下的文件复制到容器的 /app 目录
27-
COPY . /app
28-
29-
# 设置时区为亚洲/上海
30-
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
31-
32-
# 设置工作目录
3325
WORKDIR /app
3426

35-
# 删除不必要的目录,减少镜像体积
36-
RUN rm -rf docs fcb-fronted
27+
# 复制项目文件(通过 .dockerignore 排除不必要的文件)
28+
COPY . .
29+
30+
# 设置时区
31+
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
32+
echo 'Asia/Shanghai' > /etc/timezone
3733

3834
# 从构建阶段复制编译好的前端主题
39-
COPY --from=frontend-builder /build/fronted-2024/dist /app/themes/2024
40-
COPY --from=frontend-builder /build/fronted-2023/dist /app/themes/2023
35+
COPY --from=frontend-builder /build/fronted-2024/dist ./themes/2024
36+
COPY --from=frontend-builder /build/fronted-2023/dist ./themes/2023
4137

42-
# 安装依赖
43-
RUN pip install -r requirements.txt
38+
# 安装 Python 依赖
39+
RUN pip install --no-cache-dir -r requirements.txt
4440

45-
# 暴露端口
4641
EXPOSE 12345
4742

48-
# 启动应用
4943
CMD ["python", "main.py"]

readme.md

Lines changed: 1 addition & 1 deletion

readme_en.md

Lines changed: 1 addition & 1 deletion

themes/2023/assets/AboutView-DYjyUJF_.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

themes/2023/assets/AdminView-BC_-34Xk.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

themes/2023/assets/AdminView-BfUHrcUB.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)