Skip to content

Commit 99d8b70

Browse files
authored
fixed docker-compose requirements for local setups with venv inside project root (#10697)
## Purpose Fix devenv setup for people who use virtualenv inside project root in conjuction with docker-compose ## Changes Changed mount for `docker-compose` `requirements` service
1 parent dc84403 commit 99d8b70

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docker-compose.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,15 +358,16 @@ services:
358358
- /bin/bash
359359
- -c
360360
- python -m venv /tmp/venv
361-
&& /tmp/venv/bin/pip install poetry==1.8.0 &&
361+
&& /tmp/venv/bin/pip install poetry==1.8.3 &&
362362
/tmp/venv/bin/poetry install --no-root --without release --compile --sync &&
363363
rm -rf /python3.12/* &&
364364
cp -Rf -p /usr/local/lib/python3.12 /
365365
restart: 'no'
366366
environment:
367367
DJANGO_SETTINGS_MODULE: api.base.settings
368368
volumes:
369-
- ./:/code:cached
369+
- ./pyproject.toml:/code/pyproject.toml
370+
- ./poetry.lock:/code/poetry.lock
370371
- osf_requirements_3_12_vol:/python3.12
371372

372373
assets:

0 commit comments

Comments
 (0)