# Use a private build in docker image

**URL:** <https://discuss.elastic.co/t/use-a-private-build-in-docker-image/90790>\
**Category:** Elasticsearch\
**Created:** [June 26, 2017, 7:27am UTC](https://discuss.elastic.co/t/use-a-private-build-in-docker-image/90790 "2017-06-26T07:27:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![animageofmine](https://avatars.discourse-cdn.com/v4/letter/a/7feea3/32.png) [@animageofmine](https://discuss.elastic.co/u/animageofmine)\
**Post date:** [June 26, 2017, 7:27am UTC](https://discuss.elastic.co/t/use-a-private-build-in-docker-image/90790/1 "2017-06-26T07:27:30Z")

</div>

We have some changes that we want to deploy to our production environment. We use dockerized image for Elasticsearch (debian based).

Unfortunately, there is a feature we want to use that does not exist in Elasticsearch. Hence, we updated the code to add support based on our requirements. However, I was wondering how can we use private build into docker.

The current DockerFile simply downloads a debian package and unpacks it with dpkg. It sounds like, I need to do the following:

1. Create a dpkg from a private build
2. Use that dpkg in Dockerfile

Do you know how to create a dpkg from a private build / source and how to use that in DockerFile? Thanks so much.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 24, 2017, 7:27am UTC](https://discuss.elastic.co/t/use-a-private-build-in-docker-image/90790/2 "2017-07-24T07:27:47Z")

</div>

Closed on July 24, 2017, 7:27am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
