thp / urlwatch

Watch (parts of) webpages and get notified when something changes via e-mail, on your phone or via other means. Highly configurable.
https://thp.io/2008/urlwatch/
Other
2.81k stars 352 forks source link

shrink container image from 1g to 150m #731

Closed sedlund closed 1 year ago

sedlund commented 1 year ago

The original container build weighed in at 1.03g. I switched it to the latest stable python 3.11.0 image based on Alpine Linux and this brings it down to 151m. I tested with the latest stable with their Debian bullseye slim image and it comes to 228m.

I also converted the container to run as a user instead of root and use pip to install from local.

Let me know what you think.

sedlund commented 1 year ago

Wanted to tag @chenrui333 and @agix for comments

thp commented 1 year ago

Please rebase against master so that the CI tests can run though (see #733).

sedlund commented 1 year ago

Hi @thp, I think I completed the needful, if not let me know. Thanks.

thp commented 1 year ago

Merged, thanks!