-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use dev version of poetry and poetry-core
- Loading branch information
Showing
1 changed file
with
11 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |