{"id":21857426,"url":"https://github.com/meenaljy/multi-stage-project","last_synced_at":"2026-05-17T22:31:17.622Z","repository":{"id":192869244,"uuid":"687620078","full_name":"MeenalJy/multi-stage-project","owner":"MeenalJy","description":"This repo is for demonstrates the concept of Multistage build in Docker.","archived":false,"fork":false,"pushed_at":"2023-09-05T17:23:12.000Z","size":366,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T19:28:19.383Z","etag":null,"topics":["docker","dockerfile"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MeenalJy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-05T16:47:21.000Z","updated_at":"2023-09-17T20:29:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"183225e9-d6f9-41dd-be30-25e14ae53800","html_url":"https://github.com/MeenalJy/multi-stage-project","commit_stats":null,"previous_names":["meenaljy/multi-stage-project"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MeenalJy/multi-stage-project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeenalJy%2Fmulti-stage-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeenalJy%2Fmulti-stage-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeenalJy%2Fmulti-stage-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeenalJy%2Fmulti-stage-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MeenalJy","download_url":"https://codeload.github.com/MeenalJy/multi-stage-project/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeenalJy%2Fmulti-stage-project/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33157448,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","dockerfile"],"created_at":"2024-11-28T02:28:51.042Z","updated_at":"2026-05-17T22:31:17.603Z","avatar_url":"https://github.com/MeenalJy.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Multistage Docker Build with Flask Web Application\n\nThis project demonstrates the concept of Multistage build in Docker using a Flask web application. It illustrates the difference in image size between a normal image build and a multi-stage image build.\n\n## Table of Contents\n\n- [Introduction](#introduction)\n- [Prerequisites](#prerequisites)\n- [Project Structure](#project-structure)\n- [Usage](#usage)\n- [Screenshots](#screenshots)\n  - [Dockerfile of Normal Image](#dockerfile-of-normal-image)\n  - [Dockerfile of Multi-stage Image](#dockerfile-of-multi-stage-image)\n  - [Size Difference](#size-difference)\n\n\n## Introduction\n\nDocker is a powerful tool for containerization, and one of its features is multistage builds. Multistage builds allow us to create smaller, more efficient Docker images by separating the build environment from the runtime environment.\n\nIn this project, we demonstrate how to use multistage builds to create a Docker image for a Flask web application. We also compare the image size between a normal build and a multistage build to highlight the advantages of the latter.\n\n## Prerequisites\n\nBefore you begin, ensure you have the following prerequisites:\n\n- [Docker](https://www.docker.com/) installed on your system.\n- Basic knowledge of Docker commands.\n\n## Project Structure\n\nThe project structure is as follows:\n\n```\nmultistage-docker-flask/\n├── app/\n│   ├── app.py\n│   ├── requirements.txt\n├── Dockerfile\n├── README.md\n```\n\n- `app/`: Contains the Flask web application and its dependencies.\n- `Dockerfile`: Defines the multistage Docker build.\n- `README.md`: You're reading it!\n\n## Usage\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/yourusername/multistage-docker-flask.git\n   cd multistage-docker-flask\n   ```\n\n2. Build the Docker image using the multistage Dockerfile:\n\n   ```bash\n   docker build -t multistage-flask-app .\n   ```\n\n3. Run the Docker container:\n\n   ```bash\n   docker run -p 5000:5000 multistage-flask-app\n   ```\n\n4. Access the Flask web application in your browser at `http://localhost:5000`.\n\n## Screenshots\n\n### Dockerfile of Normal Image\n\n![Dockerfile of Normal Image](screenshots/normal-dockerfile.jpg)\n\n### Dockerfile of Multi-stage Image\n\n![Dockerfile of Multi-stage Image](screenshots/mts-dockerfile.jpg)\n\n### Size Difference\n\n![Size Difference](screenshots/diff-of-size.jpg)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeenaljy%2Fmulti-stage-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeenaljy%2Fmulti-stage-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeenaljy%2Fmulti-stage-project/lists"}