Switch to use playwright to capture screenshots

This commit is contained in:
2025-11-04 21:22:37 +11:00
parent 453567dc9c
commit 6ff54f0439
9 changed files with 457 additions and 333 deletions
+17 -19
View File
@@ -5,40 +5,38 @@ services:
build:
context: .
dockerfile: Dockerfile.local
image: web-local-image
image: links-app-local
command: >
bash -c "uv sync --no-dev && uv run python manage.py migrate &&
uv run python manage.py runserver 0.0.0.0:8000"
bash -c "python manage.py migrate &&
python manage.py runserver 0.0.0.0:8000"
volumes:
- .:/app
- venv:/app/.venv
- ./data/media:/app/data/media
- ./data/db.sqlite3:/app/data/db.sqlite3
- playwright-browsers:/app/.playwright
ports:
- "8000:8000"
env_file:
- .env
environment:
- DJANGO_SETTINGS_MODULE=core.settings
- PLAYWRIGHT_BROWSERS_PATH=/app/.playwright
restart: unless-stopped
networks:
- app-network
node:
image: web-local-image
command: >
bash -c "
npm install &&
uv pip install --system django-tailwind &&
uv run python manage.py tailwind install &&
uv run python manage.py tailwind start"
build:
context: .
dockerfile: Dockerfile.local
image: links-app-local
working_dir: /app/new_theme/static_src
command: bash -c "npm install && npm run dev"
volumes:
- .:/app
- venv:/app/.venv
- node_modules:/app/node_modules
- ./new_theme/static_src:/app/new_theme/static_src
- ./new_theme/static:/app/new_theme/static
- node_modules:/app/new_theme/static_src/node_modules
environment:
- DJANGO_SETTINGS_MODULE=core.settings
- PYTHONPATH=/app
- UV_CACHE_DIR=/app/.cache/uv
- NODE_ENV=development
depends_on:
web:
condition: service_started
@@ -48,8 +46,8 @@ services:
stdin_open: true
volumes:
venv:
node_modules:
playwright-browsers:
networks:
app-network: