Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem inheriting from image #14

Open
pfichtner opened this issue Jun 28, 2020 · 0 comments
Open

Problem inheriting from image #14

pfichtner opened this issue Jun 28, 2020 · 0 comments

Comments

@pfichtner
Copy link

Writing my own Dockerfile inheriting from andrius/asterisk where I add some files to /var/lib/asterisk/sounds/ I run into the problem that in my parent Dockerfile (andrius/asterisk) the directory is defined as VOLUME
Because of that all the files added by my Dockerfile during build process are gone when starting the container (see https://stackoverflow.com/questions/46227454/modifying-volume-data-inherited-from-parent-image and https://docs.docker.com/engine/reference/builder/#notes-about-specifying-volumes).

I could add the files during container startup (via ENTRYPOINT) but that would mean that on each startup the sound files would have to been downloaded.
Currently I use a copy of your Dockerfile without the VOLUME commands.

Both solutions are workaround/hacks. Do you have an idea how to solve this issue in a clean manner?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant