Skip to content

mariusdebeer/ubuntu-php7-apache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

ubuntu-php7-apache

This is a Dockerfile I had to make for a job interview aptitude test.

The task was as follows:
"Create a custom Docker image that runs any web server, with php version 7.x and make the homepage a phpInfo() page"

In hindsight, I could probably replace this (step 9 & 10):

COPY index.php /var/www/html
RUN chmod 0644 /var/www/html/index.php

with something like this:

RUN touch /var/www/html/index.php && echo '<?php phpinfo(); ?>' > /var/www/html/index.php && chmod 0644 /var/www/html/index.php

as it will have the same result.

Releases

No releases published

Packages

No packages published