From 0250ddac28d8cad20381948efad6eae3061f99be Mon Sep 17 00:00:00 2001 From: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com> Date: Sun, 22 Jan 2023 18:15:48 -0600 Subject: [PATCH] use dev version of poetry and poetry-core --- poetry/Dockerfile | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/poetry/Dockerfile b/poetry/Dockerfile index 815fb15..55cead4 100644 --- a/poetry/Dockerfile +++ b/poetry/Dockerfile @@ -1,16 +1,19 @@ FROM python:3.10 as base COPY pyproject.toml poetry.lock . -COPY workspaces workspaces/ +RUN pip install git+https://github.com/adriangb/poetry.git@skip-path-dep-install \ + && pip uninstall -y poetry-core \ + && pip install -U git+https://github.com/python-poetry/poetry-core.git@main \ + && poetry config virtualenvs.create false FROM base as app -RUN pip install poetry \ - && poetry config virtualenvs.create false \ - && poetry install --only app -CMD ["poetry", "run", "python", "workspaces/cli/src/namespace/app/main.py"] +RUN poetry install --only app --no-path +COPY workspaces/ workspaces/ +RUN poetry install --only app +CMD ["poetry", "run", "python", "workspaces/app/src/namespace/app/main.py"] FROM base as cli -RUN pip install poetry \ - && poetry config virtualenvs.create false \ - && poetry install --only cli +RUN poetry install --only cli --no-path +COPY workspaces/ workspaces/ +RUN poetry install --only cli CMD ["poetry", "run", "python", "workspaces/cli/src/namespace/cli/main.py"]