{"id":43529254,"url":"https://github.com/factorysh/docker-php","last_synced_at":"2026-02-03T15:37:51.368Z","repository":{"id":26396626,"uuid":"108527158","full_name":"factorysh/docker-php","owner":"factorysh","description":"Dockerfile for PHP","archived":false,"fork":false,"pushed_at":"2022-04-15T13:48:55.000Z","size":650,"stargazers_count":2,"open_issues_count":4,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-21T00:58:39.840Z","etag":null,"topics":["docker","php"],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/factorysh.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}},"created_at":"2017-10-27T09:32:18.000Z","updated_at":"2024-04-21T00:58:39.840Z","dependencies_parsed_at":"2022-07-27T08:18:34.701Z","dependency_job_id":null,"html_url":"https://github.com/factorysh/docker-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/factorysh/docker-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/factorysh%2Fdocker-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/factorysh%2Fdocker-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/factorysh%2Fdocker-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/factorysh%2Fdocker-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/factorysh","download_url":"https://codeload.github.com/factorysh/docker-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/factorysh%2Fdocker-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29048017,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T15:19:55.533Z","status":"ssl_error","status_checked_at":"2026-02-03T15:13:09.723Z","response_time":96,"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":["docker","php"],"created_at":"2026-02-03T15:37:50.768Z","updated_at":"2026-02-03T15:37:51.347Z","avatar_url":"https://github.com/factorysh.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"PHP docker images by bearstech\n===============================\n\n3 variants of PHP7 from Debian :\n\n- composer: [bearstech/php-composer](https://hub.docker.com/r/bearstech/php-composer/)\n- cli: [bearstech/php-cli](https://hub.docker.com/r/bearstech/php-cli/)\n- fpm: [bearstech/php](https://hub.docker.com/r/bearstech/php/)\n\nAll variants are available as tag for PHP 7.0, 7.1, 7.2 and 7.3\n\nDockerfiles\n-----------\n\nDockerfiles are available at https://github.com/factorysh/docker-php\n\nUsage\n-----\n\n```\ndocker run --rm bearstech/php:7.3\ndocker run --rm bearstech/php-cli:7.3\ndocker run --rm bearstech/php-composer:7.3\n```\n\nComposer\n--------\n\nIn `bearstech/php-composer` images, `composer` is the latest stable version : 2.x now.\nThe `composer1` command is here to help your migration to *Composer 2*, `composer1` version 1.10.x.\n\nUser\n----\n\nfpm images needs a specific user, not root.\nIn your `Dockerfile`, use something like :\n\n```\nRUN useradd alice --shell /bin/bash\nCOPY www /var/www/web\nUSER alice\n```\n\nIf you are using a `volume`, be carefuls with uids :\n\n```\nARG UID=1001\nRUN useradd alice --uid ${UID} --shell /bin/bash\nCOPY www /var/www/web\nUSER alice\n```\n\nand build the image with a `build-arg` like :\n```\n--build-arg UID=`id -u`\n```\n\nSession\n-------\n\nDefault session handler is a file.\n\nIf you set `SESSION_REDIS_URL`, the will use Redis as a session handler.\n\nSee https://github.com/phpredis/phpredis\n\nEntrypoint.d\n------------\n\nAll php images implements the concept of `entrypoint.d`.\n\nWith `entrypoint.d` user can trigger custom actions before application startup\n(entrypoint).\n\nJust put your scripts and executable in the `/entrypoint.d` directory of your php\ncontainers. On startup, each executable file inside this directory will be\nrun in an independent bash process.\n\nEntrypoint.d runs files marked as executable, in **alphabetical order**. You can look\nfor an example inside `/entrypoint.d`\n\nSince each container runs `entrypoint.d` scripts, this is not **the\nrecommanded way** to run migrations :\n**if you have N replicas, migrations will be run N times**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffactorysh%2Fdocker-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffactorysh%2Fdocker-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffactorysh%2Fdocker-php/lists"}