{"id":49718334,"url":"https://github.com/gaetanovespero81/docker-multistage-example","last_synced_at":"2026-05-08T22:02:41.190Z","repository":{"id":325992307,"uuid":"1104082768","full_name":"gaetanovespero81/docker-multistage-example","owner":"gaetanovespero81","description":"Optimized multi-stage Docker build example using a Debian-based build and runtime environment.","archived":false,"fork":false,"pushed_at":"2025-11-25T18:27:39.000Z","size":4,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-28T06:31:52.792Z","etag":null,"topics":["ci-cd-optimization","containers","debian","devops","docker","dockerfile","multi-stage-build"],"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/gaetanovespero81.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-25T18:19:35.000Z","updated_at":"2025-11-26T18:01:35.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/gaetanovespero81/docker-multistage-example","commit_stats":null,"previous_names":["gaetanovespero81/docker-multistage-example"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/gaetanovespero81/docker-multistage-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaetanovespero81%2Fdocker-multistage-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaetanovespero81%2Fdocker-multistage-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaetanovespero81%2Fdocker-multistage-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaetanovespero81%2Fdocker-multistage-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gaetanovespero81","download_url":"https://codeload.github.com/gaetanovespero81/docker-multistage-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaetanovespero81%2Fdocker-multistage-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32799070,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"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":["ci-cd-optimization","containers","debian","devops","docker","dockerfile","multi-stage-build"],"created_at":"2026-05-08T22:02:36.939Z","updated_at":"2026-05-08T22:02:41.182Z","avatar_url":"https://github.com/gaetanovespero81.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker Multi-stage Example (Debian)\n\n![CI](https://github.com/gaetanovespero81/docker-multistage-example/actions/workflows/docker-ci.yml/badge.svg)\n![Version](https://img.shields.io/github/v/tag/gaetanovespero81/docker-multistage-example?label=version)\n\nThis repository demonstrates an optimized **multi-stage Docker build**\nbased on a generic Linux distribution (`debian:bookworm-slim`).\n\nThe project compiles a small C program in a dedicated builder stage,\nand runs the final binary in a lightweight runtime stage as a non-root user.\n\n---\n\n## 📦 Features\n\n- Multi-stage Docker build\n- Static C binary compilation\n- Non-root runtime user\n- Clean Debian base image\n- GitHub Actions CI with:\n  - Docker build\n  - Container run test\n  - Output validation\n\n---\n\n## 🛠 Build the image\n\n\n`docker build -t docker-multistage-example .`\n\n---\n\n## ▶ Run the container\n\n`docker run --rm docker-multistage-example`\n\nExpected output:\n\n`Hello from multi-stage Docker build on Debian!`\n\n---\n\n## 🔁 CI Pipeline (GitHub Actions)\nThe workflow automatically triggers on:\n- any push\n- any pull request\n\nIt performs:\n1. Docker build\n2. Program execution inside container\n3. Output verification\n4. Pass/fail result\n\nYou can inspect it under:\n\n`.github/workflows/docker-ci.yml`\n\n---\n\n## 📂 Repository Structure\ndocker-multistage-example/\n│\n\n├── Dockerfile\n\n├── src/\n\n│   └── hello.c\n\n├── .github/\n\n│   └── workflows/\n\n│   |   └── docker-ci.yml\n\n└── README.md\n\n---\n\n## 🧩 Why this repo is valuable\n\n- Demonstrates advanced Docker multi-stage techniques\n- Shows build optimization and image size reduction\n- Highlights secure container practices (non-root user)\n- Includes automated CI pipeline\n- Great for DevOps / Cloud / Platform Engineering portfolios\n\n---\n\n## 👤 Author\n\n*Gaetano Vespero*\n\n*DevOps \u0026 Automation Engineer* | *Specialist in CI/CD + AI Workflow Integration*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaetanovespero81%2Fdocker-multistage-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgaetanovespero81%2Fdocker-multistage-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaetanovespero81%2Fdocker-multistage-example/lists"}