Replies: 6 comments 1 reply
-
|
Thank you for the question @marchrius Regarding the choice to use debian-slim is that considering the team and community resources current focus of the research is on one system (Debian) with the extention to ubuntu just because very very similar. regarding The bigger size of the image that you obtain i guess it might be related to the version of the requirements.txt that you are using and specifically on the fersion of python3-fpdf and more specifically its dependency python3-fonttools. python3-fonttools in its latest versions uses scipy that add the weight that you have notice. You can compare here debian-bookworm was 176mb, while debian trixie is 346mb and the difference is caused by python3-fonttools+scipy that we use to generate reports in PDF instead of TXT: https://hub.docker.com/repository/registry-1.docker.io/globaleaks/globaleaks/tags
|
Beta Was this translation helpful? Give feedback.
-
|
Thanks @evilaliv3 for answering me. I'm building internal docker image with python-alpine using requirements.txt.trixie so I'm using the same library. Is there some conditional clause that cause the non-installation of the functionalities? Just to be sure, if I exec Maybe I'm missing something.
These are the file created on the python-alpine base image by a test recipient with a single report in the system. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for the detailed question @marchrius Let me explain the differences and the reasons why we use Debian packaging instead of PIP. With PIP you are installing the packages and versions that we have written in the requirements (that correspond for each debian distribution to the versions included in that versions of debian), but the subdependenices are currently auto-resolved. To achieve better result you should do a full freeze and by doing that you would freeze the resolution of the packages made today. By using Debian packaging instead of this we are doing something similar but more sophisticated:
I hope this helps and please feel free to make us other question or provide your very valuable feedback :) |
Beta Was this translation helpful? Give feedback.
-
|
Hello @marchrius I've a very nice update on the matter.
|
Beta Was this translation helpful? Give feedback.
-
|
Hi @evilaliv3 first of all, great goal! I've understood why the difference in image size and the decision to keep it LTS instead of using probably insecure or well tested dependencies. Thanks for the very instructive conversation. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you @marchrius for your feedback. Of coure, the package for alpine or more prioritarly for a centos remains interesting if supported by significant advantages and performed using the specific packaging system (apk or rpm) |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
Proposal
Hi all,
is there a reason why debian-slim base image was used rather than python-alpine?
I'm building images with python-alpine as base image (python:3.13.1-alpine) without installing the deb but building code inside the container and creating image from the result container.
At the moment of writing with python:3.13.1-alpine and globaleaks v5.0.79 we have and image of ~100 MB compared to ~346 MB for the same version but with debian-slim.
Beta Was this translation helpful? Give feedback.
All reactions