diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index af23a81..90ba906 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -33,12 +33,6 @@ jobs: python_version: "3.9" - name: python3.8-slim python_version: "3.8" - - name: python3.9-alpine3.14 - python_version: "3.9" - - name: python3.8-alpine3.10 - python_version: "3.8" - - name: python3.7-alpine3.8 - python_version: "3.7" fail-fast: true runs-on: ubuntu-latest steps: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 51226e7..b30f45c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,12 +37,6 @@ jobs: python_version: "3.9" - name: python3.8-slim python_version: "3.8" - - name: python3.9-alpine3.14 - python_version: "3.9" - - name: python3.8-alpine3.10 - python_version: "3.8" - - name: python3.7-alpine3.8 - python_version: "3.7" fail-fast: true runs-on: ubuntu-latest steps: diff --git a/README.md b/README.md index 176451f..85e3ae0 100644 --- a/README.md +++ b/README.md @@ -12,23 +12,21 @@ * [`python3.9-slim` _(Dockerfile)_](https://github.com/tiangolo/uvicorn-gunicorn-starlette-docker/blob/master/docker-images/python3.9-slim.dockerfile) * [`python3.8-slim` _(Dockerfile)_](https://github.com/tiangolo/uvicorn-gunicorn-starlette-docker/blob/master/docker-images/python3.8-slim.dockerfile) -## Discouraged tags - -* [`python3.8-alpine3.10` _(Dockerfile)_](https://github.com/tiangolo/uvicorn-gunicorn-starlette-docker/blob/master/docker-images/python3.9-alpine3.14.dockerfile) -* [`python3.9-alpine3.14` _(Dockerfile)_](https://github.com/tiangolo/uvicorn-gunicorn-starlette-docker/blob/master/docker-images/python3.8-alpine3.10.dockerfile) -* [`python3.7-alpine3.8` _(Dockerfile)_](https://github.com/tiangolo/uvicorn-gunicorn-starlette-docker/blob/master/docker-images/python3.7-alpine3.8.dockerfile) - -To learn more about why Alpine images are discouraged for Python read the note at the end: [🚨 Alpine Python Warning](#-alpine-python-warning). - ## Deprecated tags -🚨 These tags are no longer supported or maintained, they are removed from the GitHub repository, but the last version pushed is still available in Docker Hub. +🚨 These tags are no longer supported or maintained, they are removed from the GitHub repository, but the last versions pushed might still be available in Docker Hub if anyone has been pulling them: +* `python3.8-alpine3.10` +* `python3.9-alpine3.14` +* `python3.7-alpine3.8` * `python3.6` * `python3.6-alpine3.8` -The last versions with date tags for Python 3.6 are: +The last date tags for these versions are: +* `python3.8-alpine3.10-2024-03-17` +* `python3.9-alpine3.14-2024-03-17` +* `python3.7-alpine3.8-2024-03-17` * `python3.6-2022-11-25` * `python3.6-alpine3.8-2022-11-25` @@ -38,7 +36,7 @@ The last versions with date tags for Python 3.6 are: # uvicorn-gunicorn-starlette -[**Docker**](https://www.docker.com/) image with [**Uvicorn**](https://www.uvicorn.org/) managed by [**Gunicorn**](https://gunicorn.org/) for high-performance [**Starlette**](https://www.starlette.io/) web applications in **[Python](https://www.python.org/)** with performance auto-tuning. Optionally in a slim version or based on Alpine Linux. +[**Docker**](https://www.docker.com/) image with [**Uvicorn**](https://www.uvicorn.org/) managed by [**Gunicorn**](https://gunicorn.org/) for high-performance [**Starlette**](https://www.starlette.io/) web applications in **[Python](https://www.python.org/)** with performance auto-tuning. **GitHub repo**: [https://github.com/tiangolo/uvicorn-gunicorn-starlette-docker](https://github.com/tiangolo/uvicorn-gunicorn-starlette-docker) @@ -130,7 +128,7 @@ This image will set a sensible configuration based on the server it is running o It has sensible defaults, but you can configure it with environment variables or override the configuration files. -There is also a slim version and another one based on Alpine Linux. If you want one of those, use one of the tags from above. +There is also a slim version. If you want that, use one of the tags from above. ### `tiangolo/uvicorn-gunicorn` diff --git a/docker-images/python3.7-alpine3.8.dockerfile b/docker-images/python3.7-alpine3.8.dockerfile deleted file mode 100644 index 9754743..0000000 --- a/docker-images/python3.7-alpine3.8.dockerfile +++ /dev/null @@ -1,8 +0,0 @@ -FROM tiangolo/uvicorn-gunicorn:python3.7-alpine3.8 - -LABEL maintainer="Sebastian Ramirez " - -COPY requirements.txt /tmp/requirements.txt -RUN pip install --no-cache-dir -r /tmp/requirements.txt - -COPY ./app /app diff --git a/docker-images/python3.8-alpine3.10.dockerfile b/docker-images/python3.8-alpine3.10.dockerfile deleted file mode 100644 index 5d73649..0000000 --- a/docker-images/python3.8-alpine3.10.dockerfile +++ /dev/null @@ -1,8 +0,0 @@ -FROM tiangolo/uvicorn-gunicorn:python3.8-alpine3.10 - -LABEL maintainer="Sebastian Ramirez " - -COPY requirements.txt /tmp/requirements.txt -RUN pip install --no-cache-dir -r /tmp/requirements.txt - -COPY ./app /app diff --git a/docker-images/python3.9-alpine3.14.dockerfile b/docker-images/python3.9-alpine3.14.dockerfile deleted file mode 100644 index 12ae150..0000000 --- a/docker-images/python3.9-alpine3.14.dockerfile +++ /dev/null @@ -1,8 +0,0 @@ -FROM tiangolo/uvicorn-gunicorn:python3.9-alpine3.14 - -LABEL maintainer="Sebastian Ramirez " - -COPY requirements.txt /tmp/requirements.txt -RUN pip install --no-cache-dir -r /tmp/requirements.txt - -COPY ./app /app diff --git a/pyproject.toml b/pyproject.toml index 4134b39..bd189b1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [tool.poetry] name = "uvicorn-gunicorn-starlette-docker" version = "0.1.0" -description = "Docker image with Uvicorn managed by Gunicorn for high-performance Starlette web applications in Python with performance auto-tuning. Optionally with Alpine Linux." +description = "Docker image with Uvicorn managed by Gunicorn for high-performance Starlette web applications in Python with performance auto-tuning." authors = ["Sebastián Ramírez "] license = "MIT" diff --git a/scripts/process_all.py b/scripts/process_all.py index c269d16..6537e5b 100644 --- a/scripts/process_all.py +++ b/scripts/process_all.py @@ -13,9 +13,6 @@ {"NAME": "python3.10-slim", "PYTHON_VERSION": "3.10"}, {"NAME": "python3.9-slim", "PYTHON_VERSION": "3.9"}, {"NAME": "python3.8-slim", "PYTHON_VERSION": "3.8"}, - {"NAME": "python3.9-alpine3.14", "PYTHON_VERSION": "3.9"}, - {"NAME": "python3.8-alpine3.10", "PYTHON_VERSION": "3.8"}, - {"NAME": "python3.7-alpine3.8", "PYTHON_VERSION": "3.7"}, ] start_with = os.environ.get("START_WITH")