Skip to content

multi-py/multipy-image-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

multipy-image-template

Benefits

Multi Architecture Builds

Every tag in this repository supports these architectures:

  • linux/amd64
  • linux/arm64
  • linux/arm/v7

Small Images via Multi Stage Builds

All libraries are compiled in one image before being moved into the final published image. This keeps all of the build tools out of the published container layers.

No Rate Limits

This project uses the Github Container Registry to store images, which have no rate limiting on pulls (unlike Docker Hub).

Rapid Building of New Versions

Within 30 minutes of a new release to TEMPLATE_PYTHON_PACKAGE on PyPI builds will kick off for new containers. This means new versions can be used in hours, not days.

Regular Updates

Containers are rebuilt weekly in order to take on the security patches from upstream containers.

How To

Full

To pull the latest slim version:

docker pull ghcr.io/multi-py/multipy-image-template:py3.10-LATEST

To include it in the dockerfile instead:

FROM ghcr.io/multi-py/multipy-image-template:py3.10-LATEST

Slim

To pull the latest slim version:

docker pull ghcr.io/multi-py/multipy-image-template:py3.10-slim-LATEST

To include it in the dockerfile instead:

FROM ghcr.io/multi-py/multipy-image-template:py3.10-slim-LATEST

Copy Just the Packages

It's also possible to copy just the Python packages themselves. This is particularly useful when you want to use the precompiled libraries from multiple containers.

FROM python:3.10

COPY --from=ghcr.io/multi-py/multipy-image-template:py3.10-slim-LATEST /usr/local/lib/python3.10/site-packages/* /usr/local/lib/python3.10/site-packages/

Python Versions

This project actively supports these Python versions:

  • 3.10
  • 3.9
  • 3.8
  • 3.7
  • 3.6

Image Variants

Like the upstream Python containers themselves a variety of image variants are supported.

Full

The default container type, and if you're not sure what container to use start here. It has a variety of libraries and build tools installed, making it easy to extend.

Slim

This container is similar to Full but with far less libraries and tools installed by default. If yo're looking for the tiniest possible image with the most stability this is your best bet.

Alpine

This container is provided for those who wish to use Alpine. Alpine works a bit differently than the other image types, as it uses musl instead of glibc and many libaries are not well tested under musl at this time.

Architectures

Every tag in this repository supports these architectures:

  • linux/amd64
  • linux/arm64
  • linux/arm/v7

Sponsorship

If you get use out of these containers please consider sponsoring me using Github!

Github Sponsorship

Tags

  • Recommended Image: ghcr.io/multi-py/multipy-image-template:py3.10-0.1.1
  • Slim Image: ghcr.io/multi-py/multipy-image-template:py3.10-slim-0.1.1

Tags are based on the package version, python version, and the upstream container the container is based on.

TEMPLATE_PYTHON_PACKAGE Version Python Version Full Container Slim Container Alpine Container
latest 3.10 py3.10-latest py3.10-slim-latest py3.10-alpine-latest
latest 3.9 py3.9-latest py3.9-slim-latest py3.9-alpine-latest
latest 3.8 py3.8-latest py3.8-slim-latest py3.8-alpine-latest
latest 3.7 py3.7-latest py3.7-slim-latest py3.7-alpine-latest
latest 3.6 py3.6-latest py3.6-slim-latest py3.6-alpine-latest
0.1.1 3.10 py3.10-0.1.1 py3.10-slim-0.1.1 py3.10-alpine-0.1.1
0.1.1 3.9 py3.9-0.1.1 py3.9-slim-0.1.1 py3.9-alpine-0.1.1
0.1.1 3.8 py3.8-0.1.1 py3.8-slim-0.1.1 py3.8-alpine-0.1.1
0.1.1 3.7 py3.7-0.1.1 py3.7-slim-0.1.1 py3.7-alpine-0.1.1
0.1.1 3.6 py3.6-0.1.1 py3.6-slim-0.1.1 py3.6-alpine-0.1.1
0.1.0 3.10 py3.10-0.1.0 py3.10-slim-0.1.0 py3.10-alpine-0.1.0
0.1.0 3.9 py3.9-0.1.0 py3.9-slim-0.1.0 py3.9-alpine-0.1.0
0.1.0 3.8 py3.8-0.1.0 py3.8-slim-0.1.0 py3.8-alpine-0.1.0
0.1.0 3.7 py3.7-0.1.0 py3.7-slim-0.1.0 py3.7-alpine-0.1.0
0.1.0 3.6 py3.6-0.1.0 py3.6-slim-0.1.0 py3.6-alpine-0.1.0

Older Tags

Older tags are left for historic purposes but do not receive updates. A full list of tags can be found on the package's registry page.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published