-
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.
Merge pull request #11 from withlogicco/poetry-1.2
Bump Poetry to `1.2`
- Loading branch information
Showing
3 changed files
with
11 additions
and
22 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
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,27 +1,16 @@ | ||
ARG PYTHON_VERSION=3.10 | ||
ARG VARIANT=buster | ||
|
||
FROM python:${PYTHON_VERSION}-alpine as installation-base | ||
|
||
WORKDIR /etc | ||
ARG POETRY_VERSION=1.1.15 | ||
RUN wget https://raw.githubusercontent.com/python-poetry/poetry/${POETRY_VERSION}/get-poetry.py | ||
ARG POETRY_HOME=/usr/local/poetry | ||
ENV POETRY_HOME=${POETRY_HOME} | ||
RUN python /etc/get-poetry.py | ||
|
||
|
||
FROM python:${PYTHON_VERSION}-${VARIANT} | ||
|
||
ENV PYTHONUNBUFFERED=1 | ||
|
||
ARG PIP_VERSION=22.2.2 | ||
RUN pip install --upgrade pip==${PIP_VERSION} | ||
ARG SETUPTOOLS_VERSION=65.3.0 | ||
RUN pip install --upgrade pip==${PIP_VERSION} setuptools==${SETUPTOOLS_VERSION} | ||
|
||
ARG POETRY_HOME=/usr/local/poetry | ||
ENV POETRY_HOME=${POETRY_HOME} | ||
COPY --from=installation-base ${POETRY_HOME} ${POETRY_HOME} | ||
RUN ln -s ${POETRY_HOME}/bin/poetry /usr/local/bin/poetry | ||
ARG POETRY_VERSION=1.2.0 | ||
RUN pip install poetry==${POETRY_VERSION} | ||
RUN poetry config virtualenvs.create false | ||
|
||
WORKDIR /usr/src/app |
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