3 ms·
I do but I have multiple small projects so I can just re-use the container and change some config files. Its basically a build script that is less than 100 lin
by opendais 12y ago
I do but I have multiple small projects so I can just re-use the container and change some config files.
Its basically a build script that is less than 100 lines, generally, so it is really easy to use.
- bacongobbler 12y agoFYI there are some really cool ways that you can recycle and re-use dockerfiles with ONBUILD commands. We actually do that for some of our containers as well, such as when you have multiple python projects. https://github.com/deis/dockerfiles/blob/master/python-runtime/Dockerfile https://github.com/deis/dockerfiles/blob/master/python-runti... Just add "FROM deis/python-runtime" to the top of your project and declare a CMD or an ENTRYPOINT in your Dockerfile and suddenly you have a python project installed and ready to go.
- opendais 12y agoThanks but 'change some config files' generally means modifying the conf/ tree I import all my configurations from. [e.g. Nginx domain name, requirements.txt] It doesn't mean modifying the Dockerfile.