sorry, not quite sure of the words… th tarfile is NOT the docker image… it is some files…
docker IMAGE is created from docker build command
the From in the dockerfile starts the filesystem…
I tar an existing app, and untar it when the container starts… but ONLY the folders that are the app (/opt/xxx)
(it is on a volume connected at run time, so the docker image doesn’t have to hold the 1.5 GB gzipped app image)
in the dockerfile, you have either
to identify the SINGLE application (executable) to run to keep the container alive.
my Dockerfile has
to launch the script which unbundles (zip or tar) the product file, and does some other setup before
launching the app… I also pass in from the docker run, some parameters to the container entrypoint command
to help the app decide which execution mode it is in.