Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

convert Dockerfile to Bash script

Is there any easy way to convert a Dockerfile to a Bash script in order to install all the software on a real OS? The reason is that docker container I can not change and I would like afterwards change few things if they did not work out.

like image 865
user977828 Avatar asked Oct 29 '15 12:10

user977828


1 Answers

You can of course convert a Dockerfile to bash script commands. Its just a matter of determining what the translation means. All docker installs, apply changes to a "file system layer" and that means all changes can be implemented in a real OS.

An example of this process is here: https://github.com/thatkevin/dockerfile-to-shell-script It is an example of how you would do the translation.

like image 64
trevor Avatar answered Sep 28 '22 11:09

trevor