This article will briefly show you how to use Docker for Laravel and MySQL application.
Create a .docker folder right inside the project’s root folder.
Then create a Dockerfile file with the following content.
FROM php:7.4.1-apacheUSER rootWORKDIR /var/www/htmlRUN apt-get update && apt-get install -y \libpng-dev \zlib1g-dev \