build(docker): 更新 Docker 配置和忽略项

- 在 .dockerignore 文件中添加多个新目录和文件类型,避免不必要的文件被包含在镜像中
- 更新 backend/Dockerfile.worker,取消注释安装 playwright 浏览器和依赖的命令
This commit is contained in:
danial
2025-09-17 22:11:01 +08:00
parent bb94cbd020
commit d6816981ef
2 changed files with 22 additions and 3 deletions

View File

@@ -167,4 +167,23 @@ htmlcov/
# Monitoring # Monitoring
*.prof *.prof
*.pprof *.pprof
*.trace *.trace
/frontend/node_modules/
/frontend/.next/
/frontend/out/
/frontend/.vercel/
/frontend/.turbo/
/frontend/.env
/backend/node_modules/
/backend/.claude/
/backend/.mypy_cache/
/backend/.idea/
/backend/.pytest_cache/
/backend/.venv/
/backend/.vscode/
/frontned/.vscode/
/backend/__pycache__/
/.coebuddy/
/.idea/
/.claude/
/.qode/

View File

@@ -30,8 +30,8 @@ COPY .env.production .env
COPY test_gunicorn.py ./ COPY test_gunicorn.py ./
COPY run.py ./ COPY run.py ./
# RUN python -m playwright install chromium && \ RUN python -m playwright install chromium && \
# python -m playwright install-deps chromium python -m playwright install-deps chromium
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \ HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \
CMD python -c "from app.core.celery_app import get_celery_app; app = get_celery_app(); print('Worker healthy')" || exit 1 CMD python -c "from app.core.celery_app import get_celery_app; app = get_celery_app(); print('Worker healthy')" || exit 1