I want to create a multistage build process whereas each of the docker files are nested inside their own directories locally with their corresponding dependencies that are ADDed in for each Docker file. Is there a way to import a Docker file from a different directory locally whereas I am able to import it with Docker's FROM
command, to create several stages in a build?
If not, would I be able to ADD
the other staged Docker file's into the current Docker file and then use FROM
inside the docker container, deleting it after it is added and used in FROM
?
Maybe I am thinking about multistage builds the wrong way.
Or can I simply run FROM {path/to/docker/locally}
? This is not working for me.