Skip to content

Commit 8a3e518

Browse files
committed
Persist built playwright browsers and venv in compose
1 parent 6a4d430 commit 8a3e518

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ RUN apt-get update && apt-get install -y \
7979
ENV POETRY_NO_INTERACTION=1 \
8080
POETRY_VIRTUALENVS_IN_PROJECT=1 \
8181
POETRY_VIRTUALENVS_CREATE=1 \
82-
POETRY_CACHE_DIR=/tmp/poetry_cache
82+
POETRY_CACHE_DIR=/tmp/poetry_cache \
83+
PLAYWRIGHT_BROWSERS_PATH=${APP_DIR}/browsers
8384

8485
COPY pyproject.toml poetry.lock ./
8586
RUN pip install poetry

docker-compose.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ services:
1515
- db
1616
volumes:
1717
- ./:/app
18+
- venv:/app/.venv
19+
- playwright_browsers:/app/browsers
1820
restart: unless-stopped
1921

2022
asset_builder:
@@ -44,3 +46,5 @@ services:
4446
volumes:
4547
postgres_data:
4648
redis_data:
49+
venv:
50+
playwright_browsers:

0 commit comments

Comments
 (0)