Hey!
This is a spin-off of python-poetry/poetry#6144
I'm running Poetry in a docker build within Bitbucket Pipelines CI (with a memory limit of 1GB applied on the Docker service). I see the container's memory grow and grow before the container gets killed at 1GB of usage. Another person on that issue was seeing the same behaviour in Circle CI.
I've replicated it locally using regular docker run commands too and narrowed it down to commit 0449c53. My crude test harness (which just installs poetry with custom versions of tomlkit and the tries to install packages) gets killed on 0449c53 but not in the previous commit f8099e6.
There's some recreation info here https://github.com/dsalisbury/poetry-6144
I'm attempting to dig into #212 to see more specifically where the problem arose.