Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 963 Bytes

File metadata and controls

40 lines (26 loc) · 963 Bytes

DevOption Ignite

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.

Usage

  • Install laravel/octane in your Laravel application.
composer require laravel/octane
  • Create a new Dockerfile in 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-name with the name of your application.

  • Run the container
docker run -d -p 80:8000 application-name

Note: Replace application-name with the name of your application.