{"id":21612276,"url":"https://github.com/anapsix/docker-php","last_synced_at":"2025-03-18T16:26:57.599Z","repository":{"id":34104265,"uuid":"37931890","full_name":"anapsix/docker-php","owner":"anapsix","description":"Tiny Docker image with PHP + Composer over AlpineLinux","archived":false,"fork":false,"pushed_at":"2015-09-21T18:37:20.000Z","size":176,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-24T20:18:26.023Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/anapsix.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":"2015-06-23T16:49:40.000Z","updated_at":"2018-09-25T02:06:28.000Z","dependencies_parsed_at":"2022-07-29T20:09:53.907Z","dependency_job_id":null,"html_url":"https://github.com/anapsix/docker-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/anapsix%2Fdocker-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anapsix%2Fdocker-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anapsix%2Fdocker-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anapsix%2Fdocker-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anapsix","download_url":"https://codeload.github.com/anapsix/docker-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244258517,"owners_count":20424400,"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":[],"created_at":"2024-11-24T21:17:44.204Z","updated_at":"2025-03-18T16:26:57.573Z","avatar_url":"https://github.com/anapsix.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## anapsix/php\n\n42MB container image with basic PHP 5.6 installation and Composer,\nbased on [AlpineLinux](http://alpinelinux.org).  \nIf you need to run PHP scripts inside containers,\nbut don't want the bulk of Ubuntu..\n\n[![Build Status](https://travis-ci.org/anapsix/docker-php.svg?branch=master)](https://travis-ci.org/anapsix/docker-php)\n\n[![](https://badge.imagelayers.io/anapsix/php:latest.svg)](https://imagelayers.io/?images=anapsix/php:latest)\n\n## Usage\n\n### Running anapsix/php\n1. make sure to have required dependencies in composer.json\n2. run your php scripts as:\n\n        docker run -it --rm -v $(pwd):/app anapsix/php --upgrade ./script_name.php\n\n\n### Building FROM anapsix/php\nMake your own image based on this one like so\n(see [./example][https://github.com/anapsix/docker-php/tree/master/example]):\n\n    FROM anapsix/php\n    CMD [\"./myscript.php\"]\n\nTo install _additional dependencies_ for your script/application, you can\nplace package names (one per line, comments and empty lines are ignored) into\n`./deps.apk`. It will be checked for during the build and packages will be\ninstalled via `apk`.  \nTo install _build-time only_ dependencies (system libraries, etc),\nplacepackage names into `./deps_build.apk`. They will be removed after\n`compose install`.\n\n\n\u003e For list of available packages see [http://pkgs.alpinelinux.org/packages](http://pkgs.alpinelinux.org/packages).\n\nFor additional convenience, if `./deps.sh` exists and __is executable__, it\nwill be run after `./deps.apk` is processed. This should allow you to install\nadditional libraries not available in AlpineLinux APK repository or perform\nany custom action (i.e. create users, clone a repo, install packages from\npecl/pear, etc).  \nSimilarly to `./deps_build.apk`, `./deps_build.sh` can be used for custom\nbuild-time pre-`composer install` steps. It is expected to be executable,\nif present. After `compose install` it will be executed again with `--cleanup`\nargument, which should allow for custom cleanup step.\n\n\nBuild it so:\n\n    docker build -t myapp .\n\nand start it thus:\n\n    docker run -it --rm myapp\n\n\n------------------------------------\nYou could (re)build this image locally with:\n\n    docker build --no-cache -t anapsix/php https://github.com/anapsix/docker-php.git\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanapsix%2Fdocker-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanapsix%2Fdocker-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanapsix%2Fdocker-php/lists"}