Special image for development with Laravel tools included
267
$ docker pull jhoncytech/buster-apache-laravel
This image will help you start any development project with a base structure and symfony tools included.
With this structure you get:
> mkdir public-html
FROM jhoncytech/buster-apache-laravel
COPY ./public-html/ /var/www/html/
USER admin
RUN mkdir /var/www/html/public && echo "Test" >> public/index.php
USER root
CMD bash -c "/etc/init.d/php8.1-fpm start && apachectl -DFOREGROUND"
Then, run the follow commands inside the root folder to build and run the Docker image:
> docker build -t my-web .
> docker run -dit --name my-web-app -p 8077:80 my-web
Visit http://localhost:8077 and you will see It works!
If you don't want to include a Dockerfile in your project, it is sufficient to do the following:
CONTAINER WITH LINUX OS
> docker run -dit --name my-web-app -p 8077:80 -v "$PWD":/var/www/html/ jhoncytech/buster-apache-laravel
CONTAINER WITH WINDOWS OS
> docker run -dit --name my-web-app -p 8077:80 -v C:\absolute\path\to\your\windows\folder:/var/www/html/ jhoncytech/buster-apache-laravel
EXAMPLE WITH WINDOWS OS
> docker run -dit --name my-web-app -p 8077:80 -v C:\Users\Usuario\Documents\Docker-test\public-html:/var/www/html/ jhoncytech/buster-apache-laravel
- Mail: [email protected]
- Web: https://jhoncytech.com
---
- Mail: [email protected]
- Web: https://jhonnygo.com

Content type
Image
Digest
Size
528 MB
Last updated
over 4 years ago
docker pull jhoncytech/buster-apache-laravel