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?