-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
github-actions
committed
May 20, 2023
1 parent
5b9905e
commit e0bd6e5
Showing
5 changed files
with
85 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM python:3.10.11-bullseye | ||
|
||
ENV PYTHONDONTWRITEBYTECODE=1 \ | ||
PYTHONUNBUFFERED=1 \ | ||
PYTHONFAULTHANDLER=1 \ | ||
POETRY_VERSION=1.5.0 \ | ||
POETRY_VIRTUALENVS_IN_PROJECT=true \ | ||
POETRY_NO_INTERACTION=1 \ | ||
POETRY_HOME=/usr/bin/poetry \ | ||
PATH=/usr/bin/poetry/bin:$PATH | ||
|
||
# Python version must be 3.5 or higher | ||
# Poetry must version be 1.1.7 or higher | ||
RUN curl -sSL https://install.python-poetry.org > ./install-poetry.py \ | ||
&& python ./install-poetry.py \ | ||
&& rm ./install-poetry.py | ||
|
||
CMD ["/bin/bash"] |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM python:3.10.11-bullseye as install-poetry | ||
|
||
# Python version must be 3.5 or higher | ||
# Poetry version must be 1.1.7 or higher | ||
RUN curl -sSL https://install.python-poetry.org > ./install-poetry.py | ||
|
||
FROM python:3.10.11-slim-bullseye | ||
|
||
ENV PYTHONDONTWRITEBYTECODE=1 \ | ||
PYTHONUNBUFFERED=1 \ | ||
PYTHONFAULTHANDLER=1 \ | ||
POETRY_VERSION=1.5.0 \ | ||
POETRY_VIRTUALENVS_IN_PROJECT=true \ | ||
POETRY_NO_INTERACTION=1 \ | ||
POETRY_HOME=/usr/bin/poetry \ | ||
PATH=/usr/bin/poetry/bin:$PATH | ||
|
||
WORKDIR / | ||
COPY --from=install-poetry ./install-poetry.py ./ | ||
RUN python ./install-poetry.py \ | ||
&& rm ./install-poetry.py | ||
|
||
CMD ["/bin/bash"] |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM python:3.11.3-bullseye | ||
|
||
ENV PYTHONDONTWRITEBYTECODE=1 \ | ||
PYTHONUNBUFFERED=1 \ | ||
PYTHONFAULTHANDLER=1 \ | ||
POETRY_VERSION=1.5.0 \ | ||
POETRY_VIRTUALENVS_IN_PROJECT=true \ | ||
POETRY_NO_INTERACTION=1 \ | ||
POETRY_HOME=/usr/bin/poetry \ | ||
PATH=/usr/bin/poetry/bin:$PATH | ||
|
||
# Python version must be 3.5 or higher | ||
# Poetry must version be 1.1.7 or higher | ||
RUN curl -sSL https://install.python-poetry.org > ./install-poetry.py \ | ||
&& python ./install-poetry.py \ | ||
&& rm ./install-poetry.py | ||
|
||
CMD ["/bin/bash"] |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM python:3.11.3-bullseye as install-poetry | ||
|
||
# Python version must be 3.5 or higher | ||
# Poetry version must be 1.1.7 or higher | ||
RUN curl -sSL https://install.python-poetry.org > ./install-poetry.py | ||
|
||
FROM python:3.11.3-slim-bullseye | ||
|
||
ENV PYTHONDONTWRITEBYTECODE=1 \ | ||
PYTHONUNBUFFERED=1 \ | ||
PYTHONFAULTHANDLER=1 \ | ||
POETRY_VERSION=1.5.0 \ | ||
POETRY_VIRTUALENVS_IN_PROJECT=true \ | ||
POETRY_NO_INTERACTION=1 \ | ||
POETRY_HOME=/usr/bin/poetry \ | ||
PATH=/usr/bin/poetry/bin:$PATH | ||
|
||
WORKDIR / | ||
COPY --from=install-poetry ./install-poetry.py ./ | ||
RUN python ./install-poetry.py \ | ||
&& rm ./install-poetry.py | ||
|
||
CMD ["/bin/bash"] |
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 |
---|---|---|
|
@@ -23,6 +23,9 @@ | |
1, | ||
2, | ||
], | ||
"1.5": [ | ||
0, | ||
], | ||
} | ||
PYTHON_VERSIONS: Dict[str, List[int]] = { | ||
"3.10": [ | ||
|