refactor: project restructuring - migrate to modular directory layout
- Move root-level docs into docs/ directory - Move config files into config/ directory - Move docker files into docker/ directory - Move test scripts into tests/ directory - Remove .env from tracking (use .env.example as template) - Remove .venv/ from tracking (use requirements.txt) - Add Vue3 frontend app (vue-app/) - Add new routes: upload, user_templates, meeting_minutes, etc. - Add database migrations for prompt_template additions - Fix load_dotenv() to use absolute path for Flask reloader compatibility Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
26
docker/Dockerfile.log-manager
Normal file
26
docker/Dockerfile.log-manager
Normal file
@@ -0,0 +1,26 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
# 设置工作目录
|
||||
WORKDIR /app
|
||||
|
||||
# 复制日志管理相关文件
|
||||
COPY log_manager.py .
|
||||
COPY requirements.txt .
|
||||
|
||||
# 安装Python依赖
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# 创建日志目录
|
||||
RUN mkdir -p /app/logs
|
||||
|
||||
# 设置环境变量
|
||||
ENV PYTHONPATH=/app
|
||||
|
||||
# 创建定时任务
|
||||
RUN echo "0 2 * * * cd /app && python log_manager.py" > /etc/cron.d/log-maintenance
|
||||
|
||||
# 安装cron
|
||||
RUN apt-get update && apt-get install -y cron && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# 启动cron和日志管理
|
||||
CMD ["sh", "-c", "cron && python log_manager.py"]
|
||||
Reference in New Issue
Block a user