I want to build on my own composer:latest image with Docker version 18.06.1-ce, I use this script to do it:
#!/bin/sh
wget -O Dockerfile https://raw.githubusercontent.com/composer/docker/edf4f0abf50da5d967408849434b9053a195b65f/1.7/Dockerfile
wget -O docker-entrypoint.sh https://raw.githubusercontent.com/composer/docker/master/1.7/docker-entrypoint.sh
chmod +x docker-entrypoint.sh
docker build -t mycomposer:latest .
but besides the created image
mycomposer:latest
i end up having around 10 images none:none.
docker image prune
does not solve the issue.
how to build the composer:latest image form the files here composer github without leaving these intermediate images?
I want to do it manually instead of using command FROM because this is the first step of me using Dockerfile as a template and add,delete commands to/from it where I want. But the first step is to get the image build as it is from local Docker file instead of using FROM command. I don't want to use FROM command because it implies using all the commands in Dockerfile and i want just a few of them as a starting point to my custom Dockerfile and some others edited from which I'll be building my own image.
currently I managed to build image using local Dockerfile but there is a lot of unnecessary images none:none
instead of having repository like that:

where there is just one image after build. The single image from the picture above comes from the command:
docker pull composer:latest
but this pulls composer image instead of building it from my local Dockerfile, so it does not fill the bill.
But how come there is just single image after the command pull and several ones after doing build from the same Dockerfile as pull takes (I assume) and how to get rid of these none:none images?
