# Will it be posting DockerFile and DockerCompose in Github

**URL:** https://discuss.tryton.org/t/will-it-be-posting-dockerfile-and-dockercompose-in-github/1032
**Category:** Developer
**Tags:** docker
**Created:** [January 10, 2019, 12:04pm UTC](https://discuss.tryton.org/t/will-it-be-posting-dockerfile-and-dockercompose-in-github/1032 "2019-01-10T12:04:12Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [January 11, 2019, 9:20am UTC](https://discuss.tryton.org/t/will-it-be-posting-dockerfile-and-dockercompose-in-github/1032/7 "2019-01-11T09:20:19Z")

</div>

> [@bala4901](#):
>
> my mean is Dockerfiles to Github so that it can link to Docker Hub.

You do not need to have the Tryton Dockerfile on github for that because you should not create a new image from scratch to add your modules but you should extend the published image tryton/tryton:5.0.  
Here is an example of Dockerfile we use for custom project (one repository with all the custom code):

```auto
FROM tryton/tryton:5.0 as builder
USER root
RUN mkdir /module
COPY . /module
WORKDIR /module
RUN python3 setup.py sdist

FROM tryton/tryton:5.0
USER root
COPY --from=builder /module/dist /dist
RUN pip3 install /dist/* \
    && rm -rf /root/.cache
USER trytond

```

The file is stored at the top of the repository and you just run `docker build .`.

> [@bala4901](#):
>
> I remember old time has suggestion to custom module path at the config file - just like “addons path” in odoo.

It will still be rejected because installing a module should be done with `setuptools` in order to check the dependencies.

---

_[View the full topic](https://discuss.tryton.org/t/will-it-be-posting-dockerfile-and-dockercompose-in-github/1032)._
