# Custom Image build compilation failed

**URL:** <https://community.n8n.io/t/custom-image-build-compilation-failed/17493>\
**Category:** Questions\
**Tags:** deployment\
**Created:** [September 9, 2022, 3:24am UTC](https://community.n8n.io/t/custom-image-build-compilation-failed/17493 "2022-09-09T03:24:31Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![ChaseYu](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/chaseyu/32/16976_2.png) [@ChaseYu](https://community.n8n.io/u/ChaseYu)\
**Post date:** [September 9, 2022, 7:57am UTC](https://community.n8n.io/t/custom-image-build-compilation-failed/17493/11 "2022-09-09T07:57:56Z")

</div>

> [@Issue on compiling in a dockercontainer](http://community.n8n.io/t/issue-on-compiling-in-a-dockercontainer/16060/20):
>
> Heyo, I found out something about the issue again. It only fails on productionlevel. RUN npm install --production --loglevel notice RUN lerna clean RUN lerna bootstrap --hoist – --production RUN npm run build even locally outside of docker, when using those 4 lines locally to build it. Also, VS Code is pointing out the error in the emitter.ts file (where the error is coming from) without any changes made to it from our side

It should be the same problem as this, but I can’t find a solution

---

_[View the full topic](https://community.n8n.io/t/custom-image-build-compilation-failed/17493)._
