I had a problem installing Poetry using "make prod". I identified the following errors during the Poetry installation on my Ubuntu server:
I fixed them with:
RUN curl -sSL https://install.python-poetry.org | python3 -
ENV PATH="/root/.local/bin:/usr/local/bin:$PATH"
FROM base AS prod
....
...
...
RUN poetry install --no-root --no-interaction --no-ansi