From d6af794e4963a20ac7f36490edf21198f46d2482 Mon Sep 17 00:00:00 2001 From: George Margaritis Date: Tue, 28 Feb 2023 11:33:02 +0200 Subject: [PATCH] feat: add poetry version 1.4.0 --- .github/workflows/release.yml | 2 +- Dockerfile | 2 +- README.md | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a689c8f..88ec4e0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,7 +5,7 @@ on: types: [published] env: - POETRY_VERSION: 1.3.2 + POETRY_VERSION: 1.4.0 GHCR_IMAGE_REPOSITORY: ghcr.io/${{ github.repository_owner }}/poetry PLATFORMS: linux/amd64,linux/arm64/v8 diff --git a/Dockerfile b/Dockerfile index 00348b2..186239a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ ARG PIP_VERSION=22.2.2 ARG SETUPTOOLS_VERSION=65.3.0 RUN pip install --upgrade pip==${PIP_VERSION} setuptools==${SETUPTOOLS_VERSION} -ARG POETRY_VERSION=1.3.2 +ARG POETRY_VERSION=1.4.0 ENV POETRY_HOME=/opt/poetry\ PATH="${PATH}:/opt/poetry/bin" RUN python3 -m venv ${POETRY_HOME} &&\ diff --git a/README.md b/README.md index b717bc2..860fcb0 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Docker Poetry is a Docker image for Python projects with dependencies managed by Poetry. -![Poetry](https://img.shields.io/badge/Poetry-1.3.2-purple) ![Python](https://img.shields.io/badge/Python-3.11%20(default)%20%7C%203.10%20%7C%203.9%20%7C%203.8%20%7C%203.7-blue) ![Variants](https://img.shields.io/badge/Variants-Buster%20(default)%20%7C%20Slim-orange +![Poetry](https://img.shields.io/badge/Poetry-1.4.0-purple) ![Python](https://img.shields.io/badge/Python-3.11%20(default)%20%7C%203.10%20%7C%203.9%20%7C%203.8%20%7C%203.7-blue) ![Variants](https://img.shields.io/badge/Variants-Buster%20(default)%20%7C%20Slim-orange ) ## Why @@ -25,17 +25,17 @@ This will use the default Python version (latest) and image variant (Buster). Yo ### Examples -- Poetry 1.3.2: `ghcr.io/withlogicco/poetry:1.3.2` -- Poetry 1.3.2 on Python 3.11: `ghcr.io/withlogicco/poetry:1.3.2-python-3.11` -- Poetry 1.3.2 on Buster: `ghcr.io/withlogicco/poetry:1.3.2-buster` -- Poetry 1.3.2 on Python 3.11 and Buster: `ghcr.io/withlogicco/poetry:1.3.2-python-3.11-buster` +- Poetry 1.4.0: `ghcr.io/withlogicco/poetry:1.4.0` +- Poetry 1.4.0 on Python 3.11: `ghcr.io/withlogicco/poetry:1.4.0-python-3.11` +- Poetry 1.4.0 on Buster: `ghcr.io/withlogicco/poetry:1.4.0-buster` +- Poetry 1.4.0 on Python 3.11 and Buster: `ghcr.io/withlogicco/poetry:1.4.0-python-3.11-buster` ## Usage First, pick the image tag you wish to use. Then, copy your `pyproject.toml` and `poetry.lock` files in the working directory (`/usr/src/app`), for optimal caching and run `poetry install`. Example: ```dockerfile -FROM ghcr.io/withlogicco/poetry:1.3.2 +FROM ghcr.io/withlogicco/poetry:1.4.0 COPY pyproject.toml poetry.lock ./ RUN poetry install