Create a Dockerfile in your PHP project
FROM nfqasia/php:7.4
COPY . ./
RUN composer install
Then, run the commands to build and run the Docker image:
$ docker build . -t nfqasia/demo-php
$ docker run -it --rm --name my-running-app nfqasia/demo-php
See example https://github.com/devops-nfq/demo-backend
To see more option see that link https://github.com/devops-nfq/dockerfile
Content type
Image
Digest
Size
44.1 MB
Last updated
over 6 years ago
docker pull nfqasia/php