mirror of
https://git.oceanpay.cc/danial/kami_apple_exchage.git
synced 2025-12-18 22:29:09 +00:00
build(docker): 更新 Docker 配置和忽略项
- 在 .dockerignore 文件中添加多个新目录和文件类型,避免不必要的文件被包含在镜像中 - 更新 backend/Dockerfile.worker,取消注释安装 playwright 浏览器和依赖的命令
This commit is contained in:
@@ -168,3 +168,22 @@ htmlcov/
|
||||
*.prof
|
||||
*.pprof
|
||||
*.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/
|
||||
@@ -30,8 +30,8 @@ COPY .env.production .env
|
||||
COPY test_gunicorn.py ./
|
||||
COPY run.py ./
|
||||
|
||||
# RUN python -m playwright install chromium && \
|
||||
# python -m playwright install-deps chromium
|
||||
RUN python -m playwright install chromium && \
|
||||
python -m playwright install-deps chromium
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user