# Dockerfile directive

**URL:** <https://forums.suse.com/t/dockerfile-directive/7039>\
**Category:** Rancher 1.x\
**Created:** [August 7, 2017, 1:17am UTC](https://forums.suse.com/t/dockerfile-directive/7039 "2017-08-07T01:17:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PaoloC68](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/paoloc68/32/2799_2.png) [@PaoloC68](https://forums.suse.com/u/PaoloC68)\
**Post date:** [August 7, 2017, 1:17am UTC](https://forums.suse.com/t/dockerfile-directive/7039/1 "2017-08-07T01:17:27Z")

</div>

Hi,  
I was trying to use rancher to manage my multi-service applications, since I was quite new to the system I was struggling trying to understand why I could not get anything right.  
Then I have found [this bug](https://github.com/rancher/rancher/issues/9134) and all become clear, all my efforts to get a stack up and running were wasted because the `dockerfile` directive is ignored.  
This seems to me a very important piece of the puzzle and I cannot understand how and why this is not treated as a serious bug.  
Maybe I am missing something and somebody can suggest me a different approach on what I am trying to do:

1. get a postgresl service
2. Run a Django app with uwsgi
3. Expose it via nginx  
Maybe somebody can show me how I can do this without different `Dockerfile` instances.

---

<div class="post-metadata">

**Author:** ![shubbard343](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@shubbard343](https://forums.suse.com/u/shubbard343)\
**Post date:** [August 8, 2017, 10:16pm UTC](https://forums.suse.com/t/dockerfile-directive/7039/2 "2017-08-08T22:16:44Z")

</div>

You can try building your containers on your computer (or a build server like Jenkins) and push them to DockerHub or your own private registry. Then in your docker-compose, you just specify the image name and Rancher will pull the image.

---

<div class="post-metadata">

**Author:** ![PaoloC68](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/paoloc68/32/2799_2.png) [@PaoloC68](https://forums.suse.com/u/PaoloC68)\
**Post date:** [August 9, 2017, 2:11am UTC](https://forums.suse.com/t/dockerfile-directive/7039/3 "2017-08-09T02:11:57Z")

</div>

> [@shubbard343](#):
>
> Jenkins

Thank you for the advise, I will try that, yet I hope the bug can be fixed soon.
