Poetry uses a default cache-dir of ~/.cache/pypoetry, and installs virtualdevs in that folder by default. This will go around the issue of Codespaces always hard copying over the /workspaces/{project name} folder and wiping out any existing .venv folder prepared during the docker image build. So the docker image build can use poetry add and not have to worry about the issue where the in-project .venv folder is wiped out.
Poetry uses a default cache-dir of ~/.cache/pypoetry, and installs virtualdevs in that folder by default. This will go around the issue of Codespaces always hard copying over the /workspaces/{project name} folder and wiping out any existing .venv folder prepared during the docker image build. So the docker image build can use poetry add and not have to worry about the issue where the in-project .venv folder is wiped out.