How to write the docker file for the given requirements
- Use Ubuntu 16.04 as base image
- Container should have NginX 1.14.x and PHP 7.x
- Create a file named index.html with some dummy content
- Add this file at this working directory: /opt/projects
- Make this file accessible at http://127.0.0.1:8080
- Make the information about PHP’s configuration (<?php phpinfo(); ?>) accessible at
- http://127.0.0.1:8080/info.php
- NginX should write necessary access and error logs
- Mount NginX’s access and error log at host’s /var/log/nginx