# Rocketchat build

**URL:** <https://forums.rocket.chat/t/rocketchat-build/11421>\
**Category:** Mobile Apps\
**Created:** [June 17, 2021, 3:13am UTC](https://forums.rocket.chat/t/rocketchat-build/11421 "2021-06-17T03:13:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex.turronet](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@Alex.turronet](https://forums.rocket.chat/u/Alex.turronet)\
**Post date:** [June 17, 2021, 3:13am UTC](https://forums.rocket.chat/t/rocketchat-build/11421/1 "2021-06-17T03:13:49Z")

</div>

I have problem when i build my project Rocketchat!!!:

> failed to solve with frontend dockerfile.v0: failed to build LLB: executor failed running [/bin/sh -c aptMark=“$(apt-mark showmanual)” && apt-get install -y --no-install-recommends g++ make python ca-certificates && cd /app/bundle/programs/server && npm install && apt-mark auto ‘.\*’ \> /dev/null && apt-mark manual $aptMark \> /dev/null && find /usr/local -type f -executable -exec ldd ‘{}’ ‘;’ | awk ‘/=\>/ { print $(NF-1) }’ | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false && npm cache clear --force]: runc did not terminate sucessfully

---

<div class="post-metadata">

**Author:** ![john.crisp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/john.crisp/32/2711_2.png) [@john.crisp](https://forums.rocket.chat/u/john.crisp)\
**Post date:** [June 17, 2021, 7:42am UTC](https://forums.rocket.chat/t/rocketchat-build/11421/2 "2021-06-17T07:42:53Z")

</div>

Hi.

What are you trying to do?

Just install Rocket via docker?

---

<div class="post-metadata">

**Author:** ![Alex.turronet](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@Alex.turronet](https://forums.rocket.chat/u/Alex.turronet)\
**Post date:** [June 22, 2021, 6:25pm UTC](https://forums.rocket.chat/t/rocketchat-build/11421/3 "2021-06-22T18:25:18Z")

</div>

I have made some change in the code source , i’am modifying in the code source

---

<div class="post-metadata">

**Author:** ![john.crisp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/john.crisp/32/2711_2.png) [@john.crisp](https://forums.rocket.chat/u/john.crisp)\
**Post date:** [June 22, 2021, 8:09pm UTC](https://forums.rocket.chat/t/rocketchat-build/11421/4 "2021-06-22T20:09:23Z")

</div>

It would really help if you

a) formatted the commands using the format command like this `npm install`  
b) didn’t use && so we can see what happens at each stage

---

<div class="post-metadata">

**Author:** ![cestev](https://avatars.discourse-cdn.com/v4/letter/c/f1d935/32.png) [@cestev](https://forums.rocket.chat/u/cestev)\
**Post date:** [July 19, 2022, 8:33pm UTC](https://forums.rocket.chat/t/rocketchat-build/11421/5 "2022-07-19T20:33:00Z")

</div>

Hi I finally managed to create an image from sourcecode. Some of it with help of this post:  
[https://forums.rocket.chat/t/how-to-build-a-rocket-chat-docker-image/3035](https://forums.rocket.chat/t/how-to-build-a-rocket-chat-docker-image/3035)  
and following next steps:  
First download source code and get in that folder, then:  
1- cd /apps/meteor  
2- meteor build --server-only --directory /tmp/rc-build (the lasta argument will be the path where you want the bundle to be created)  
3- cp .docker/Dockerfile /tmp/rc-build (Modify Dockerfile acording to your needs)  
4- cd /tmp/rc-build  
5- docker build . -t someimage (name you want to give to your image)  
_Here I got stucked because I was starting mongodb in a different container and couldn’t link them up, I mean I could not make my rocket chat image to use mi mongo container runing, so i decided to launch them together as follows_  
6- While being in same folder, Create a docker-compose.yml (this will be similar to the one provided by rocketchat itself (check [Documentation](https://docs.rocket.chat/quick-start/deploying-rocket.chat/rapid-deployment-methods/docker-and-docker-compose) or here the [docker-compose.yml-example](https://github.com/RocketChat/Docker.Official.Image/blob/master/compose.yml) )  
7- docker-compose up -d (will launch your rocket attached to the mongo container)

I hope this helps
