{"id":30463645,"url":"https://github.com/blamebutton/laravel-docker-builder","last_synced_at":"2025-08-24T00:21:15.594Z","repository":{"id":65206026,"uuid":"587533553","full_name":"blamebutton/laravel-docker-builder","owner":"blamebutton","description":"Automatically create Docker images for your Laravel application","archived":false,"fork":false,"pushed_at":"2024-01-23T11:54:03.000Z","size":178,"stargazers_count":97,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-04T20:05:26.971Z","etag":null,"topics":["docker","dockerfile","laravel","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/blamebutton.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}},"created_at":"2023-01-11T01:06:55.000Z","updated_at":"2024-09-29T12:50:32.000Z","dependencies_parsed_at":"2024-01-23T12:56:12.799Z","dependency_job_id":null,"html_url":"https://github.com/blamebutton/laravel-docker-builder","commit_stats":{"total_commits":96,"total_committers":1,"mean_commits":96.0,"dds":0.0,"last_synced_commit":"70df3159a3b7c0a81c2e9b97c01bdc2701d781b0"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/blamebutton/laravel-docker-builder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blamebutton%2Flaravel-docker-builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blamebutton%2Flaravel-docker-builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blamebutton%2Flaravel-docker-builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blamebutton%2Flaravel-docker-builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blamebutton","download_url":"https://codeload.github.com/blamebutton/laravel-docker-builder/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blamebutton%2Flaravel-docker-builder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271770723,"owners_count":24817649,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","dockerfile","laravel","php"],"created_at":"2025-08-24T00:21:14.822Z","updated_at":"2025-08-24T00:21:15.585Z","avatar_url":"https://github.com/blamebutton.png","language":"PHP","readme":"![Banner](https://banners.beyondco.de/Laravel%20Docker%20Builder.png?theme=light\u0026packageManager=composer+require\u0026packageName=blamebutton%2Flaravel-docker-builder\u0026pattern=architect\u0026style=style_1\u0026description=Create+Dockerfiles+and+Kubernetes+manifests+for+your+application\u0026md=1\u0026showWatermark=1\u0026fontSize=100px\u0026images=https%3A%2F%2Flaravel.com%2Fimg%2Flogomark.min.svg\u0026widths=auto)\n\n[![Packagist Version](https://img.shields.io/packagist/v/blamebutton/laravel-docker-builder)](https://packagist.org/packages/blamebutton/laravel-docker-builder)\n[![Packagist Downloads](https://img.shields.io/packagist/dm/blamebutton/laravel-docker-builder)](https://packagist.org/packages/blamebutton/laravel-docker-builder)\n![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/blamebutton/laravel-docker-builder/phpunit.yml)\n\n## Features\n\n* Build Docker images using the Artisan CLI\n* Detect PHP version and extensions\n* Bundle assets with Vite.js or Laravel Mix\n* Separate NGINX and PHP-FPM images\n* [Deployment examples](/.examples/) for Kubernetes and Docker Compose\n\n## Installation\n\n```shell\ncomposer require --dev blamebutton/laravel-docker-builder\n```\n\n## Usage\n\n### Detect Configuration\n\n```shell\nphp artisan docker:generate --detect\n```\n\nWhen `--detect` is passed to the `docker:generate` command, it will automatically detect the following requirements:\n\n* PHP version, detected using the `php` version in your `composer.json`\n* PHP extensions, detected using the configuration of your project:\n    * Cache driver: Redis, Memcached, APC\n    * Database driver: MySQL, Postgres, SQL Server\n    * Broadcasting driver: Redis\n    * Queue driver: Redis\n    * Session driver: Redis, Memcached, APC\n* Node package manager, detected using the existence of `package-lock.json` or `yarn.lock`\n* Node build tool, detected using the existence of `vite.config.js` or `webpack.mix.js`\n\n### Manual Configuration\n\n```shell\nphp artisan docker:generate\n```\n\nWhen no options are passed to `docker:generate`, a prompt is used to configure the project's requirements.\n\nSee all available options, and their supported values, by running `php artisan docker:generate --help`.\n\n* `-p, --php-version` - PHP version for Docker image\n* `-e, --php-extensions` - PHP extensions (comma-separated) to include in Docker image\n* `-o, --optimize` - Run `php artisan optimize` on container start\n* `-a, --alpine` - Use Alpine Linux based images\n* `-m, --node-package-manager` - Install Node dependencies using NPM or Yarn\n* `-b, --node-build-tool` - Run Vite.js or Laravel Mix build step\n\n## Configuration\n\n### Option 1: Config File\n\n```shell\nphp artisan vendor:publish --provider=\"BlameButton\\LaravelDockerBuilder\\DockerServiceProvider\"\n```\n\n### Option 2: `.env`\n\nBy default, the configuration file reads the following environment variables to determine the Docker image tags.\n\n```shell\nDOCKER_NGINX_TAG=laravel-app:nginx\nDOCKER_PHP_TAG=laravel-app:php\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblamebutton%2Flaravel-docker-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblamebutton%2Flaravel-docker-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblamebutton%2Flaravel-docker-builder/lists"}