{"id":15684245,"url":"https://github.com/petehouston/docker-alpine-php","last_synced_at":"2025-05-07T15:48:05.996Z","repository":{"id":46426709,"uuid":"59098564","full_name":"petehouston/docker-alpine-php","owner":"petehouston","description":"A very small Docker image to bootstrap your PHP development","archived":false,"fork":false,"pushed_at":"2021-10-14T05:29:27.000Z","size":13,"stargazers_count":10,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-31T11:35:32.364Z","etag":null,"topics":["alpine","docker","docker-image","hacktoberfest","php"],"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/petehouston.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}},"created_at":"2016-05-18T08:52:22.000Z","updated_at":"2021-10-14T05:46:16.000Z","dependencies_parsed_at":"2022-09-09T17:01:52.045Z","dependency_job_id":null,"html_url":"https://github.com/petehouston/docker-alpine-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petehouston%2Fdocker-alpine-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petehouston%2Fdocker-alpine-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petehouston%2Fdocker-alpine-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petehouston%2Fdocker-alpine-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/petehouston","download_url":"https://codeload.github.com/petehouston/docker-alpine-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252909248,"owners_count":21823581,"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":["alpine","docker","docker-image","hacktoberfest","php"],"created_at":"2024-10-03T17:13:27.129Z","updated_at":"2025-05-07T15:48:05.932Z","avatar_url":"https://github.com/petehouston.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker Alpine PHP\n\n[![](https://imagelayers.io/badge/petehouston/docker-alpine-php:latest.svg)](https://imagelayers.io/?images=petehouston/docker-alpine-php:latest 'Get your own badge on imagelayers.io')\n\n[![nodesource/node](http://dockeri.co/image/petehouston/docker-alpine-php)](https://registry.hub.docker.com/u/petehouston/docker-alpine-php/)\n\nA very small Docker image to bootstrap your PHP development.\n\n### Why this image?\n\nOf course, there are [official PHP images](https://hub.docker.com/_/php/) but the size looks a little big for my development machine, and I also prefer some customization on my builds.\n\nIn addition, I sometimes want to quickly run a small PHP script, so I don't really need that big-in-size official images.\n\nThe size-differences illustrated below:\n\n```\nREPOSITORY                      TAG          IMAGE ID       CREATED       SIZE\npetehouston/docker-alpine-php   5.5          76642fdcb40d   5 hours ago   136.4 MB\npetehouston/docker-alpine-php   5.6          d4a16ab8659b   6 hours ago   137.2 MB\npetehouston/docker-alpine-php   7.0          5a2b3687d124   9 hours ago   138.5 MB\npetehouston/docker-alpine-php   7.4          5add74c7f4b2   4 hours ago   82.7MB\n\nphp                             7.0-alpine   562f31e64296   12 days ago   382.9 MB\nphp                             5.6-alpine   7bc0403e7fa9   12 days ago   334.7 MB\nphp                             5.5-alpine   76323652d59f   12 days ago   330.8 MB\n```\n\nAs you can see, **the difference is around 2.5-3 times**.\n\n### Supported Versions\n\nFollowing PHP versions are set as default\n\n* [tag:7.4](7.4/Dockerfile) (7.4.24)\n* [tag:7.0](7.0/Dockerfile) (7.0.6)\n* [tag:5.6](5.6/Dockerfile) (5.6.21)\n* [tag:5.5](5.5/Dockerfile) (5.5.35)\n\nIf you want to change version, just update this line in `Dockerfile`,\n\n```\nENV PHP_VERSION Your_Desired_Version\n```\n\n### How to use?\n\nJust pull it to your local machine,\n\n```\n$ docker pull petehouston/docker-alpine-php\n```\n\n### Build\n\nThe repo uses `make` to execute the command, so you can either use `make` to build or manually issue the commands.\n\nThe build commands are listed below:\n\n* `make php-5.5`: to build image for PHP 5.5.\n* `make php-5.6`: to build image for PHP 5.6.\n* `make php-7.0`: to build image for PHP 7.0.\n* `make build`: to build images for all PHP versions.\n* `make test`: to execute image tests.\n* `make all` or `make`: to execute `build` and `test`\n* `make clean`: to remove all images.\n\n### Testing\n\nThe test suite is very simple and put in a single test script [tests/index.sh](tests/index.sh).\n\n### Notes\n\nPlease share your words if any. Always welcome :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetehouston%2Fdocker-alpine-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpetehouston%2Fdocker-alpine-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetehouston%2Fdocker-alpine-php/lists"}