Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies #2

Merged
merged 4 commits into from
Oct 13, 2024
Merged

Update dependencies #2

merged 4 commits into from
Oct 13, 2024

Conversation

aphedges
Copy link
Owner

This PR updates my checks and all dependencies. It updates the deployment and CI from Python 3.11 to 3.12, and I switched from a Debian to an Alpine base OCI image while I was at it.

Generated automatically by `make update && make lock`
As part of this update, I am now pinning the patch version of the base
OCI image, which should make builds more reproducible.
@aphedges aphedges self-assigned this Oct 13, 2024
Alpine is significantly smaller than even "slim" Debian images, so
development and deployment should go quicker if I use one.

I was using `3.12.7-slim` (based on Debian bookworm), which was 124 MB.
I am now using `3.12.7-alpine3.20`, which is 46.9 MB.

This drops the size of the final image from 138 MB to 61 MB. It's not
much, but it should still help some. It has the added benefit of having
fewer vulnerabilities.

Changing the base OS required one related build change: I need to run
the server with `sh` because `bash` is not installed by default.
@aphedges
Copy link
Owner Author

The force push was to fix OCI image sizes in a commit message. I still need to get used to the fact that the sizes on my Apple silicon laptop are different from the x86_64 images I actually use in deployments.

@aphedges aphedges merged commit 9b549fa into main Oct 13, 2024
1 check passed
@aphedges aphedges deleted the update-deps-2024-10-13 branch October 13, 2024 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant