Hacker News new | past | comments | ask | show | jobs | submit login

The easiest way is to add a Dockerfile to your source repository, and use 'docker build' to create a container image from it.

Documentation link: http://docs.docker.io/en/master/use/builder/




Hmm. this is good. but my build environment is kind of wonky.

Can I just hand it a .tar.gz and say, put it in /usr/asdf and let it run? What about python scripts? Maybe I just give it a location to an RPM? like in this document?

http://docs.docker.io/en/master/examples/python_web_app/


You can use the ADD build instruction in the Dockerfile to upload any part of your source repo into the container. Then more RUN instructions to manipulate that, for example compile the code etc.

Here are 2 examples:

https://github.com/steeve/docker-opencv https://github.com/shykes/docker-znc




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: