Skip to content

Commit

Permalink
use dev version of poetry and poetry-core
Browse files Browse the repository at this point in the history
  • Loading branch information
adriangb committed Jan 23, 2023
1 parent 8b406be commit 0250dda
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions poetry/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 0250dda

Please sign in to comment.