-
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.
Update params and install poetry release (#3)
- Loading branch information
Showing
1 changed file
with
5 additions
and
7 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,19 +1,17 @@ | ||
FROM python:3.10 as base | ||
|
||
COPY pyproject.toml poetry.lock . | ||
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 | ||
COPY pyproject.toml poetry.lock ./ | ||
RUN pip install poetry && \ | ||
poetry config virtualenvs.create false | ||
|
||
FROM base as app | ||
RUN poetry install --only app --no-path | ||
RUN poetry install --only app --no-directory | ||
COPY workspaces/ workspaces/ | ||
RUN poetry install --only app | ||
CMD ["poetry", "run", "python", "workspaces/app/src/namespace/app/main.py"] | ||
|
||
FROM base as cli | ||
RUN poetry install --only cli --no-path | ||
RUN poetry install --only cli --no-directory | ||
COPY workspaces/ workspaces/ | ||
RUN poetry install --only cli | ||
CMD ["poetry", "run", "python", "workspaces/cli/src/namespace/cli/main.py"] |