Skip to content

Commit e638554

Browse files
committed
Move poetry caching to a writeable dir in development image
1 parent 33a5312 commit e638554

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,12 @@ RUN apt-get update && apt-get install -y \
7979

8080
ENV POETRY_NO_INTERACTION=1 \
8181
POETRY_VIRTUALENVS_IN_PROJECT=1 \
82-
POETRY_VIRTUALENVS_CREATE=1
82+
POETRY_VIRTUALENVS_CREATE=1 \
83+
POETRY_CACHE_DIR=/tmp/poetry_cache
8384

8485
COPY pyproject.toml poetry.lock ./
8586
RUN pip install poetry
86-
RUN poetry install --no-root
87+
RUN poetry install --no-root && rm -rf $POETRY_CACHE_DIR
8788
RUN poetry run playwright install --with-deps chromium
8889

8990
USER ${USER}

0 commit comments

Comments
 (0)