{"id":20903535,"url":"https://github.com/phly/phly-docker-php-swoole","last_synced_at":"2025-03-12T21:18:37.545Z","repository":{"id":33901201,"uuid":"147237923","full_name":"phly/phly-docker-php-swoole","owner":"phly","description":"Docker image based on php:7.2-cli that adds the Swoole extension and Composer.","archived":false,"fork":false,"pushed_at":"2022-01-05T02:27:25.000Z","size":9,"stargazers_count":7,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-19T13:50:03.552Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","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/phly.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":"2018-09-03T18:03:58.000Z","updated_at":"2020-04-23T21:31:32.000Z","dependencies_parsed_at":"2022-08-07T23:30:34.991Z","dependency_job_id":null,"html_url":"https://github.com/phly/phly-docker-php-swoole","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/phly%2Fphly-docker-php-swoole","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phly%2Fphly-docker-php-swoole/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phly%2Fphly-docker-php-swoole/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phly%2Fphly-docker-php-swoole/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phly","download_url":"https://codeload.github.com/phly/phly-docker-php-swoole/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243293795,"owners_count":20268142,"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-18T13:14:02.322Z","updated_at":"2025-03-12T21:18:37.514Z","avatar_url":"https://github.com/phly.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# phly-docker-php-swoole\n\nThis repository provides tools for building and pushing the following Docker\nimages:\n\n- **mwop/phly-docker-php-swoole:7.4**: an image based on php:7.4-cli that\n  includes [Composer](https://getcomposer.org), the hirak/prestissimo Composer\n  plugin, and the [Swoole](https://swoole.co.uk) extension.\n\n- **mwop/phly-docker-php-swoole:7.4-alpine**: an image based on\n  php:7.3-cli-alpine that includes [Composer](https://getcomposer.org), the\n  hirak/prestissimo Composer plugin, and the [Swoole](https://swoole.co.uk)\n  extension.\n\nEach creates the directory `/var/www/public`, and the entrypoint\n`/usr/local/bin/entrypoint`, which will run the application. By default, this\nassumes a file `/var/www/public/index.php`, and the entrypoint will execute this\nusing the PHP binary.\n\n## Extending the image\n\nAs an example of extending the image, consider the following, which builds and\nruns an [Expressive](https://getexpressive.org) application:\n\n```Dockerfile\n# DOCKER-VERSION        1.3.2\n\nFROM mwop/phly-docker-php-swoole:7.4\n\n# PHP Extensions\nRUN docker-php-ext-install -j$(nproc) bcmath bz2 intl opcache zip\n\n# Overwrite entrypoint\nCOPY etc/bin/php-entrypoint /usr/local/bin/entrypoint\n\n# Project files\nCOPY bin /var/www/bin\nCOPY composer.json /var/www/\nCOPY composer.lock /var/www/\nCOPY templates /var/www/templates\nCOPY config /var/www/config\nCOPY src /var/www/src\nCOPY data /var/www/data\nCOPY public /var/www/public\n\n# Build project\nWORKDIR /var/www\nRUN composer install --quiet --no-ansi --no-dev --no-interaction --no-progress --no-scripts --no-plugins --optimize-autoloader \u0026\u0026 \\\n  composer docker:site\n```\n\nwhere `php-entrypoint` looks like the following:\n\n```php\n#!/bin/sh\n/usr/bin/env php public/index.php start\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphly%2Fphly-docker-php-swoole","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphly%2Fphly-docker-php-swoole","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphly%2Fphly-docker-php-swoole/lists"}