Zero-config Laravel env on Ubuntu. PHP, Composer, Node included. Ready to code.
645
Stop wasting time configuring dependencies.
This is a battery-included Docker image designed specifically for Laravel development on a robust Ubuntu base.
It comes pre-packaged with the entire ecosystem needed to spin up a Laravel project instantly. Whether you are starting a new project or onboarding a team member, this image ensures consistency across all environments.
Spin up a container mounting your current directory:
docker run -it \
-p 8000:8000 \
-v $(pwd):/var/www/html \
prakasitj/laravel-dev-container:latest
Add this to your docker-compose.yml:
services:
app:
image: prakasitj/laravel-dev-container:latest
ports:
- "8000:8000"
volumes:
- ./:/var/www/html
command: php artisan serve --host=0.0.0.0 --port=8000
This image is packed with all essential PHP extensions required for a modern Laravel application:
| Category | Extensions |
|---|---|
| Core | bcmath, ctype, json, mbstring, openssl, pdo, tokenizer, xml, zip |
| Database | pdo_mysql, pdo_pgsql, pdo_sqlite, redis |
| Image & Text | gd, intl |
| Async & Cache | swoole, memcached |
| Debug & Code Cov | xdebug, pcov |
| Others | soap, readline, ldap, msgpack, igbinary, imap |
git, curl, zip, unzip, nano, vim, sqlite3supervisornode (v20), npmopenssh-server, python2, dnsutils, fswatchYou can customize the versions during the build process using --build-arg:
| Argument | Default | Description |
|---|---|---|
PHP_VERSION | 8.3 | The PHP version to install. |
NODE_VERSION | 20 | The Node.js major version to install. |
Example:
docker build --build-arg PHP_VERSION=8.2 --build-arg NODE_VERSION=18 -t my-laravel-app .
Content type
Image
Digest
sha256:ab49da576…
Size
290.2 MB
Last updated
9 months ago
docker pull prakasitj/laravel-dev-container