Sign inSign up

prakasitj/laravel-dev-container

By prakasitj

•Updated 9 months ago

Zero-config Laravel env on Ubuntu. PHP, Composer, Node included. Ready to code.

Image
Languages & frameworks
Developer tools
Web servers
0

645

prakasitj/laravel-dev-container repository overview

⁠🐳 Ubuntu-Laravel Ready-to-Code

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.


⁠✨ Key Features

  • Base: Ubuntu 22.04 LTS (Jammy Jellyfish) for maximum package compatibility.
  • PHP: Pre-installed and configured (Default: 8.3).
  • Composer: Latest version installed globally.
  • Frontend Ready: Node.js 20 & NPM pre-installed for compiling assets (Vite/Mix).
  • Database Support: Drivers for MySQL, PostgreSQL, SQLite, and Redis.
  • Dev Tools: Xdebug, PCOV, Git, Curl, Unzip, Supervisor, Cron, Vim, Nano.

⁠🚀 Quick Start

⁠Run with Docker

Spin up a container mounting your current directory:

docker run -it \
    -p 8000:8000 \
    -v $(pwd):/var/www/html \
    prakasitj/laravel-dev-container:latest
⁠Docker Compose

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

⁠📦 Included Extensions & Modules

This image is packed with all essential PHP extensions required for a modern Laravel application:

CategoryExtensions
Corebcmath, ctype, json, mbstring, openssl, pdo, tokenizer, xml, zip
Databasepdo_mysql, pdo_pgsql, pdo_sqlite, redis
Image & Textgd, intl
Async & Cacheswoole, memcached
Debug & Code Covxdebug, pcov
Otherssoap, readline, ldap, msgpack, igbinary, imap

⁠🛠 installed Tools

  • General: git, curl, zip, unzip, nano, vim, sqlite3
  • Process Management: supervisor
  • Node.js: node (v20), npm
  • System: openssh-server, python2, dnsutils, fswatch

⁠⚙️ Build Arguments

You can customize the versions during the build process using --build-arg:

ArgumentDefaultDescription
PHP_VERSION8.3The PHP version to install.
NODE_VERSION20The Node.js major version to install.

Example:

docker build --build-arg PHP_VERSION=8.2 --build-arg NODE_VERSION=18 -t my-laravel-app .

Tag summary

Content type

Image

Digest

sha256:ab49da576…

Size

290.2 MB

Last updated

9 months ago

docker pull prakasitj/laravel-dev-container