I want to build a docker image for the Linkurious project on github, which requires both the Neo4j database, and Node.js to run.
my first approach was to declare a base image for my image, containing Neo4j. The reference docs do not define "base image" in any helpful manner:
Base image: An image that has no parent is a base image
from which I read that I may only have a base image if that image has no base image itself.
but what is a base image? does it mean that if I declare neo4j/neo4j in a FROM directive, that when my image is run the neo database will automatically run and be available within the container on port 7474?
reading the Docker reference (see: https://docs.docker.com/reference/builder/#from) I see:
FROM can appear multiple times within a single Dockerfile in order to create multiple images. Simply make a note of the last image ID output by the commit before each new FROM command.
do I want to create multiple images? it would seem what I want is to have a single image that contains the contents of other images e.g. neo4j and node.js
I've found no directive to declare dependencies in the reference manual. are there no dependencies like in RPM where in order to run my image the calling context must first install the images it needs?
I'm confused...
Question&Answers:os