DevOption Ignite is a production ready Docker image for Laravel applications. Since the image uses PHP Swoole and Laravel Octane, it is a perfect fit for Laravel applications that need to handle a lot of concurrent requests.
- Install
laravel/octanein your Laravel application.
composer require laravel/octane- Create a new
Dockerfilein your Laravel project root directory.
FROM devoption/ignite:latest
# Copy the application files
COPY . /var/www/html
# Change the permissions of the storage and bootstrap directories
RUN chmod -R 777 /var/www/html/storage
RUN chmod -R 777 /var/www/html/bootstrap/cache- Build the image
docker build -t application-name .Note: Replace
application-namewith the name of your application.
- Run the container
docker run -d -p 80:8000 application-nameNote: Replace
application-namewith the name of your application.