How to run laravel app? in docker container

I checked the execution results from the local docker container. Here is the test I have done:

step1.
build a php-composer image using dockerFile

FROM php:7

RUN apt-get update 
RUN apt-get install curl
RUN curl -sS https://getcomposer.org/installer -o composer-setup.php
RUN php composer-setup.php --install-dir=/usr/local/bin --filename=composer
RUN apt-get install -y git

step2.
use the following instructions to build container and run laravel app:

docker run -p 127.0.0.1:3000:8000 --name MyTest -dt php-composer to create a container
docker cp laravelApp/ d4bbb5d36312:/usr/
docker exec -it MyTest bash
cd usr/laravelApp
php artisan serve

then, on terminal, I will see the information about the successful execution of laravel app:

Laravel development server started: <http://127.0.0.1:8000>

however, when I ran 127.0.0.1 VOL3000 with the server, I was unable to get the results of the execution.

what is the reason for poor health?

Jun.28,2021

listening in the container http://127.0.0.1:8000 only accepts requests in the container and needs to be started in the following way:

 php artisan serve --host=0.0.0.0
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3bf84-2c2e2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3bf84-2c2e2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?