File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -80,11 +80,15 @@ RUN apt-get update && apt-get install -y \
8080ENV POETRY_NO_INTERACTION=1 \
8181 POETRY_VIRTUALENVS_IN_PROJECT=1 \
8282 POETRY_VIRTUALENVS_CREATE=1 \
83- POETRY_CACHE_DIR=/tmp/poetry_cache
83+ POETRY_CACHE_DIR=/tmp/poetry_cache \
84+ PLAYWRIGHT_BROWSERS_PATH=/app/browsers
8485
8586COPY pyproject.toml poetry.lock ./
8687RUN pip install poetry
8788RUN poetry install --no-root && rm -rf $POETRY_CACHE_DIR
89+
90+ # Install playwright browsers
91+ RUN mkdir -p /app/browsers && chown -R app:app /app/browsers
8892RUN poetry run playwright install --with-deps chromium
8993
9094USER ${USER}
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ dev-logs:
1818 $(DOCKER_COMPOSE_CMD ) logs -f
1919
2020dev-shell :
21- $(DOCKER_COMPOSE_CMD ) run web bash
21+ $(DOCKER_COMPOSE_CMD ) run --rm web bash
2222
2323dev-migrate :
2424 $(DOCKER_COMPOSE_CMD ) run --rm web python manage.py migrate
You can’t perform that action at this time.
0 commit comments