FROM ghcr.io/withlogicco/poetry:1.4.2 WORKDIR /code COPY pyproject.toml . COPY poetry.lock . RUN poetry install -vv --no-root COPY . . # second time since --no-root was used RUN poetry install