Lightweight base image for Python 3 projects deployed on Divio Cloud.
100K+
Base images for Python projects deployed on Divio Cloud.
To locally build an image, run the following command::
./build.py --repo divio/base --tag 0.00-py3.6-alpine3.7 build
Check ./build.py --help for additional information.
You can build and test all images locally by running::
ls -d py* | xargs -I '{}' ./build.py --repo divio/base --target=prod --tag test-{} build ls -d py* | xargs -I '{}' ./build.py --repo divio/base --target=dev --tag test-{} build ls -d py* | xargs --open-tty -I '{}' ./build.py --repo divio/base --target=dev --tag test-{} test
Tag commits with the desired Docker image tag, in the form::
git tag -
For your convenience, the release.py script can be used to streamline the
tagging operations::
./release.py versions --next=minor py*
The command outputs the new tags which would be applied to the repository. Once
asserted the result is correct, re-run the command with the --tag flag::
./release.py versions --next=minor --tag py*
Then push the tags to GitHub to trigger an automatic build on Docker Cloud::
git push --tags github
Please note that GitHub will not trigger webhooks when pushing more than 2 tags at the same time. When more than two images are updated, push using::
./release.py versions --push=github --last py*
Add a directory at the root containing an appropriate Dockerfile``. The image will be tagged as divio/base:-`.
To mark an image as EOL, just rename its folder by adding the EOL- prefix.
Content type
Image
Digest
sha256:ba4cea37b…
Size
71.2 MB
Last updated
over 1 year ago
docker pull divio/base:1.1-py3.12-alpine3.19