{"id":16973641,"url":"https://github.com/jamesbrink/docker-php","last_synced_at":"2025-10-09T17:39:09.213Z","repository":{"id":143397413,"uuid":"126593147","full_name":"jamesbrink/docker-php","owner":"jamesbrink","description":"Minimal PHP/Apache Docker image built on top of Alpine Linux.","archived":false,"fork":false,"pushed_at":"2018-12-22T22:58:10.000Z","size":33,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-25T20:33:05.995Z","etag":null,"topics":["alpine","alpine-linux","docker","docker-image","dockerfiles","php","php7"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jamesbrink.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-03-24T11:33:29.000Z","updated_at":"2024-03-14T03:54:41.000Z","dependencies_parsed_at":"2023-09-16T18:17:57.788Z","dependency_job_id":null,"html_url":"https://github.com/jamesbrink/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/jamesbrink%2Fdocker-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesbrink%2Fdocker-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesbrink%2Fdocker-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesbrink%2Fdocker-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamesbrink","download_url":"https://codeload.github.com/jamesbrink/docker-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248501901,"owners_count":21114681,"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","alpine-linux","docker","docker-image","dockerfiles","php","php7"],"created_at":"2024-10-14T01:02:55.303Z","updated_at":"2025-10-09T17:39:04.195Z","avatar_url":"https://github.com/jamesbrink.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Minimal PHP/Apache Docker image built on top of Alpine Linux.\n\n[![Build Status](https://travis-ci.org/jamesbrink/docker-php.svg?branch=master)](https://travis-ci.org/jamesbrink/docker-php) [![Docker Automated build](https://img.shields.io/docker/automated/jamesbrink/php.svg)](https://hub.docker.com/r/jamesbrink/php/) [![Docker Pulls](https://img.shields.io/docker/pulls/jamesbrink/php.svg)](https://hub.docker.com/r/jamesbrink/php/) [![Docker Stars](https://img.shields.io/docker/stars/jamesbrink/php.svg)](https://hub.docker.com/r/jamesbrink/php/) [![](https://images.microbadger.com/badges/image/jamesbrink/php.svg)](https://microbadger.com/images/jamesbrink/php \"Get your own image badge on microbadger.com\") [![](https://images.microbadger.com/badges/version/jamesbrink/php.svg)](https://microbadger.com/images/jamesbrink/php \"Get your own version badge on microbadger.com\")  \n\n\nAvailable versions:\n  * `jamesbrink/php:latest` (80MB) - **PHP 7.2.3** ([Dockerfile][7.2/Dockerfile])\n  * `jamesbrink/php:7.1`(72MB) - **PHP 7.1.15** ([Dockerfile][7.1/Dockerfile])\n  * `jamesbrink/php:7.0` (71MB) - **PHP 7.0.28** ([Dockerfile][7.0/Dockerfile])  \n\n\nAll images are based off of the official [Alpine Linux 3.7][Alpine Linux Image] image.\n\n\n## About\n\nFor the most part I use nearly the identical build process as the official  \n[php:7-cli-alpine][official php-cli-alpine] images. I have including the `docker-php-*` helper scripts  \nthat are included in  the official images as well. The biggest difference is the inclusion of Apache 2.4\nand compiling PHP against the packaged version of **pcre**.\n\nPull requests or suggestions are always welcome.\n\n\n## Goals\n\nThe primary goal of this container is to stay small and light weight, yet still useful for general use/consumption.\nThis should serve as a solid base image and can be easily extended as I have done with my [Magento2 image][JamesBrink/Magento2] resulting in a very slim yet complete Magento 2 container.  \n\n\n## Usage Examples\n\nRun exposing HTTP port 80.  \nThis will serve up index.php at `http://localhost` that will printing out phpinfo.    \n```shell\ndocker run -p 80:80 jamesbrink/php\n```  \n\nUse as a base image.  \n```Dockerfile\nFROM jamesbrink/php:7.2\nCOPY ./MyApp /var/www/localhost/htdocs/\nRUN apk add --update my-deps...\n```\n\n\n## Environment Variables\n\nEnvironment Variables:\n* APACHE_LOG_LEVEL - Default: \"warn\", adjusts the verbosity of the apache server  \nwhich by default prints to STDOUT. Refer to the [apache2 manual][apache2 manaual] for available LogLevels.\n\n\n[Alpine Linux Image]: https://github.com/gliderlabs/docker-alpine\n[7.2/Dockerfile]: https://github.com/jamesbrink/docker-magento/blob/master/7.2/Dockerfile\n[7.1/Dockerfile]: https://github.com/jamesbrink/docker-magento/blob/master/7.1/Dockerfile\n[7.0/Dockerfile]: https://github.com/jamesbrink/docker-magento/blob/master/7.0/Dockerfile\n[official php-cli-alpine]: https://github.com/docker-library/php/blob/master/7.2/alpine3.7/cli/Dockerfile\n[JamesBrink/Magento2]: https://github.com/jamesbrink/docker-magento\n[apache2 manaual]: https://httpd.apache.org/docs/2.4/mod/core.html#loglevel\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesbrink%2Fdocker-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamesbrink%2Fdocker-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesbrink%2Fdocker-php/lists"}