---
title: "How I reduced the size of my Docker Image by 95%"
url: https://daily.dev/posts/how-i-reduced-the-size-of-my-docker-image-by-95--ap72v-fai
source_url: https://levelup.gitconnected.com/how-i-reduced-the-size-of-my-docker-image-by-95-520a05439300?source=rss----5517fd7b58a6---4
type: article
source: "gitconnected"
published: 2022-10-06T15:04:32.504Z
updated: 2022-10-06T15:04:32.502Z
tags: ["kubernetes", "github", "docker"]
reading_time: 3
upvotes: 69
comments: 4
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How I reduced the size of my Docker Image by 95%

**[gitconnected](https://daily.dev/sources/gc)** · 3 min read · 69 upvotes · 4 comments

## Summary

How I reduced the size of my Docker Image by 95% Reduce theSize of the Docker image using a Multi-Stage build. Using multi-stage builds, you use multiple FROM statements in your Dockerfile.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://levelup.gitconnected.com/how-i-reduced-the-size-of-my-docker-image-by-95-520a05439300?source=rss----5517fd7b58a6---4>

## Community discussion

Top comments from developers on daily.dev.

**@qorbani** · 1 upvotes

> Absolutely 👍 I use multistage dockerfile for Go projects as well which will end up building tiny scratch container with only one binary!
>
> Smaller container size means faster to deploy in cluster which makes auto scalability much smoother!

**@liamnguyen** · 0 upvotes

> I would be appreciate more if that is Python Docker image :D

**@whoismatt** · 0 upvotes

> Pretty Cool !!

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#kubernetes](https://daily.dev/tags/kubernetes), [#github](https://daily.dev/tags/github), [#docker](https://daily.dev/tags/docker)

[View this post on daily.dev](https://daily.dev/posts/how-i-reduced-the-size-of-my-docker-image-by-95--ap72v-fai)
