[PR #563] [MERGED] Use slim version of the container #993

Closed
opened 2026-02-26 00:30:21 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/healthchecks/healthchecks/pull/563
Author: @RealOrangeOne
Created: 9/26/2021
Status: Merged
Merged: 10/1/2021
Merged by: @cuu508

Base: masterHead: docker-slim


📝 Commits (3)

  • 90065bb Use slim version of docker container
  • e68fb99 Install libpq-dev so psycopg2 can build correctly
  • b349612 Pin debian version to Buster

📊 Changes

1 file changed (+3 additions, -2 deletions)

View changed files

📝 docker/Dockerfile (+3 -2)

📄 Description

This massively reduces the size of the container, by removing things which aren't needed, and not downloading them in the first place.

Required a special case for psycopg2, as libpq-dev isn't included in debian slim.

python:3.9: 332mb compressed, 911mb uncompressed.
python:3.9-slim: 43mb compressed, 122mb uncompressed.

Quite a saving by doing almost nothing.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/healthchecks/healthchecks/pull/563 **Author:** [@RealOrangeOne](https://github.com/RealOrangeOne) **Created:** 9/26/2021 **Status:** ✅ Merged **Merged:** 10/1/2021 **Merged by:** [@cuu508](https://github.com/cuu508) **Base:** `master` ← **Head:** `docker-slim` --- ### 📝 Commits (3) - [`90065bb`](https://github.com/healthchecks/healthchecks/commit/90065bb2aa7aea6df8364868b968e6ee6ba217ec) Use slim version of docker container - [`e68fb99`](https://github.com/healthchecks/healthchecks/commit/e68fb991f0d3137d62f8f1abb4503fd2fd5ab7f9) Install libpq-dev so psycopg2 can build correctly - [`b349612`](https://github.com/healthchecks/healthchecks/commit/b34961294ceddc244957351aed74984ba479187a) Pin debian version to Buster ### 📊 Changes **1 file changed** (+3 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `docker/Dockerfile` (+3 -2) </details> ### 📄 Description This massively reduces the size of the container, by removing things which aren't needed, and not downloading them in the first place. Required a special case for `psycopg2`, as `libpq-dev` isn't included in debian slim. `python:3.9`: 332mb compressed, 911mb uncompressed. `python:3.9-slim`: 43mb compressed, 122mb uncompressed. Quite a saving by doing almost nothing. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 00:30:21 +03:00
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#993
No description provided.