# Create Custom Build image for customized kibana 6.4.3 source code

**URL:** <https://discuss.elastic.co/t/create-custom-build-image-for-customized-kibana-6-4-3-source-code/192104>\
**Category:** Kibana\
**Tags:** docker\
**Created:** [July 24, 2019, 5:49pm UTC](https://discuss.elastic.co/t/create-custom-build-image-for-customized-kibana-6-4-3-source-code/192104 "2019-07-24T17:49:21Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [July 29, 2019, 7:47pm UTC](https://discuss.elastic.co/t/create-custom-build-image-for-customized-kibana-6-4-3-source-code/192104/13 "2019-07-29T19:47:42Z")

</div>

You're running `docker build` directly instead of using the Makefile. The Makefile does some rather complex logic [https://github.com/elastic/kibana-docker/blob/907a9be2a38bea7e833e2f3d4557251780aaf6e4/Makefile#L67-L79](https://github.com/elastic/kibana-docker/blob/907a9be2a38bea7e833e2f3d4557251780aaf6e4/Makefile#L67-L79). I'd recommend instead renaming your `/kibana/target/*.tar.gz` to match the expected files, or augmenting the `kibana-docker/templates/Dockerfile.j2` to work with your existing archive naming.

---

_[View the full topic](https://discuss.elastic.co/t/create-custom-build-image-for-customized-kibana-6-4-3-source-code/192104)._
