build: use python:x-slim base #18

Merged
mcataford merged 1 commit from build/slimmer-docker-image into main 2023-08-16 04:32:26 +00:00
mcataford commented 2023-08-16 04:30:37 +00:00 (Migrated from github.com)

Trims down the Dockerfile by using the python:{version}-slim base image.

Initially, ubuntu:jammy was used to get a general image and Python was built from source on it. This made builds rather long. Using the specific python image has the right Python version baked in, thus quicker builds, and slim keeps the image size as low as it can.

Alpine variants were also considered, but ultimately yielded larger images.

Trims down the Dockerfile by using the `python:{version}-slim` base image. Initially, `ubuntu:jammy` was used to get a general image and Python was built from source on it. This made builds rather long. Using the specific `python` image has the right Python version baked in, thus quicker builds, and `slim` keeps the image size as low as it can. Alpine variants were also considered, but ultimately yielded larger images.
This repo is archived. You cannot comment on pull requests.
No description provided.