You do not have the proper docker build context.
Just clone for the repo to have all the files (and its permissions):
git clone https://github.com/docker-library/php
docker build . -t php_image
But if you need to customize this image, it's easier to make your own Docker file based on the official build:
FROM php:7
RUN
RUN ...
source
share