tiangolo / full-stack-fastapi-template

Full stack, modern web application template. Using FastAPI, React, SQLModel, PostgreSQL, Docker, GitHub Actions, automatic HTTPS and more.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Poetry not found

jholla-atx opened this issue · comments

This url 404's in /backend/backend.dockerfile:


RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | POETRY_HOME=/opt/poetry python && \
    cd /usr/local/bin && \
    ln -s /opt/poetry/bin/poetry && \
    poetry config virtualenvs.create false

The recommended solution from cli output did not work either:
"Replace with https://install.python-poetry.org"

I tried installing poetry with pip:

RUN python -m pip install --upgrade pip && \
    POETRY_HOME=/opt/poetry pip install poetry --no-cache-dir && \
    poetry config virtualenvs.create false

In backend/celeryworker.dockerfile and backend/backend.dockerfile I had to update line 6 to:

RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry POETRY_VERSION=1.2.0 python3 && \

and it resolved the problem.
Now fighting with npm...

commented

Solved it for me. Thx

See PRs #524 and #529 for the corrected files if you want to take a look.

Thanks! This was solved in #480 🎉

And thanks @willingc! ☕

Assuming the original issue was solved, it will be automatically closed now. But feel free to add more comments or create new issues.