poetry: not found
Traceback (most recent call last):
SERVER_ENV : local
File "/modu_property/manage.py", line 16, in main
from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/modu_property/manage.py", line 27, in <module>
main()
File "/modu_property/manage.py", line 18, in main
raise ImportError(
ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?
COPY pyproject.toml pyproject.toml
COPY poetry.lock poetry.lock
ENV \
# Poetry's configuration:
POETRY_NO_INTERACTION=1 \
POETRY_VIRTUALENVS_CREATE=false \
POETRY_CACHE_DIR='/var/cache/pypoetry' \
POETRY_HOME='/usr/local' \
POETRY_VERSION=1.6.1
RUN curl -sSL https://install.python-poetry.org | python3 - --version 1.6.1
RUN poetry install --no-interaction --no-ansi
https://stackoverflow.com/questions/53835198/integrating-python-poetry-with-docker