Skip to content

relative paths fail in Dockerfile #5

@nareto

Description

@nareto

How do you manage relative paths in pyproject.toml when you dockerize the project? For example in project-one there is

lib-one = {path = "../../libs/lib-one"}

This of course makes docker build fail with a simple Dockerfile like the following

FROM python:3.9

WORKDIR /code
RUN pip install poetry==1.1.13

COPY ./pyproject.toml ./poetry.lock* /code/
RUN poetry install --no-dev

COPY ./src /code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions