[GH-ISSUE #982] [Docker] replace pip with apt #687

Closed
opened 2026-02-25 23:43:16 +03:00 by kerem · 1 comment
Owner

Originally created by @Firesphere on GitHub (Mar 31, 2024).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/982

I believe build of the Docker container could be sped up by using apt python packages instead of running the installation using pip?
From what I can see, the following packages are readily available in apt, if prefixed with pithon3-

aiosmtpd
fido2
psycopg2
pycurl
pydantic
pyotp
segno
statsd
whitenoise

By using apt instead of pip, build times could be greatly reduced, as apt installations are a lot faster than pip

Originally created by @Firesphere on GitHub (Mar 31, 2024). Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/982 I believe build of the Docker container could be sped up by using apt python packages instead of running the installation using pip? From what I can see, the following packages are readily available in apt, if prefixed with `pithon3-` ``` aiosmtpd fido2 psycopg2 pycurl pydantic pyotp segno statsd whitenoise ``` By using apt instead of pip, build times could be greatly reduced, as apt installations are a lot faster than pip
kerem closed this issue 2026-02-25 23:43:16 +03:00
Author
Owner

@cuu508 commented on GitHub (Apr 1, 2024):

We install specific versions of python packages. Debian repositories usually lag behind PyPI, and only have older versions available.

fido2 requires cryptography which is the slowest one to build. The rest are not that different from deb packages, install speed wise.

<!-- gh-comment-id:2029324459 --> @cuu508 commented on GitHub (Apr 1, 2024): We install specific versions of python packages. Debian repositories usually lag behind PyPI, and only have older versions available. fido2 requires cryptography which is the slowest one to build. The rest are not that different from deb packages, install speed wise.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/healthchecks#687
No description provided.