It’s been my experience that adding an entryfile to Dockerfile tends to completely overwrite any reference to the parent file. For example, I am extending the base mysql image with some simple database importation scripts to init data. I’d like to just layer over my scripts to the existing entrypoint file since I don’t want to start maintaining a diverging code base from the original image. But it seems any reference to a new file completely overwrites the old entryfile. What’s the best practice to “extend” an entryfile? I am also open to best practices if there are better ways to init data or if my workflow is just way off in total! Working my way through this stuff.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Dockerfile COPY file into right container | 1 | 13743 | November 28, 2016 | |
Dockerfile - Remove inherited volumes from parent image? | 3 | 10339 | April 5, 2019 | |
Entrypoint problem, standard_init_linux.go:190: | 4 | 5313 | January 22, 2019 | |
PRE_ENTRYPOINT_RUN Feature Request | 2 | 837 | July 25, 2018 | |
MYSQL DOCKER how to theck that sql script imported correctly | 0 | 613 | January 28, 2019 |