{"id":21998529,"url":"https://github.com/umkus/docker-scratch","last_synced_at":"2026-05-04T14:32:50.301Z","repository":{"id":89917351,"uuid":"84470292","full_name":"Umkus/docker-scratch","owner":"Umkus","description":"Minimum viable Docker image","archived":false,"fork":false,"pushed_at":"2017-03-28T12:35:30.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-28T11:48:00.245Z","etag":null,"topics":["docker","scratch"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/Umkus.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}},"created_at":"2017-03-09T17:30:42.000Z","updated_at":"2021-05-02T09:34:12.000Z","dependencies_parsed_at":"2023-05-30T12:31:01.808Z","dependency_job_id":null,"html_url":"https://github.com/Umkus/docker-scratch","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Umkus%2Fdocker-scratch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Umkus%2Fdocker-scratch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Umkus%2Fdocker-scratch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Umkus%2Fdocker-scratch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Umkus","download_url":"https://codeload.github.com/Umkus/docker-scratch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245056906,"owners_count":20553856,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","scratch"],"created_at":"2024-11-29T22:25:13.630Z","updated_at":"2026-05-04T14:32:45.282Z","avatar_url":"https://github.com/Umkus.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker scratch image\n\nMinimum viable Docker image(428 bytes compressed).\n\nAllows you to distribute your code in a slim docker image artifact, separate from the execution environment.\n\n# Why?\n\nIt's convenient in case you package your software into minimalistic data-images, that don't actually being run, but \ninstead expose their content via `volumes_from` (after the container is created from it). This way you can version your software independently from 3rd party dependencies.\n\nThe only difference from the Docker Hub's native `scratch` image is addition of an empty (\u003c1kb) linux binary that always returns `0` (`/bin/true`). \nIt is set as image's entrypoint, so it's always safe to run the resulted image and to create container out of it. Without explicitly defining a command or entrypoint.\n\n# Usage\n\nUse it just as you would use the native scratch image. \n\nConsider the following usage snippets:\n\n### Dockerfile\n```\nFROM    umkus/scratch\nCOPY    . /var/www/\nVOLUME  /var/www/\n```\n\n### Building\n\n```bash\n$ docker build -t repo/app --squash .\n```\n### Docker compose\n\n```yaml\nversion: '2'\nservices:\n    fpm:\n        image: php\n        volumes_from:\n            - code\n        entrypoint: php bin/console -vvv\n    code:\n        image: repo/app\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumkus%2Fdocker-scratch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fumkus%2Fdocker-scratch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumkus%2Fdocker-scratch/lists"}