Skip to content

How do i build a production image? #9577

Closed Answered by juliancesar
Kiskadee-dev asked this question in Self hosted
Discussion options

You must be logged in to vote

To build own image follow this steps:

Git clone from repo:

git clone https://github.com/chatwoot/chatwoot.git
git checkout tags/v3.9.0

Remove EE features:

rm -rf spec/enterprise
rm -rf enterprise
echo -en '\nENV CW_EDITION="ce"' >> docker/Dockerfile

Build image (from root folder):

docker buildx build --platform linux/amd64 -t USER/chatwoot:v3.9.0 -f ./docker/Dockerfile .

The build process may take 10 minutes!

This command works on MacOS (M1), maybe you need adapt this, but the --platform is the key of build a image for amd64

Find image ID from builded version:

docker image ls | grep chatwoot

Tag locally:

docker tag ID_IMAGE USER/chatwoot:v3.9.0

Send to docker hub:

docker push USE…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@MarcioLacerda
Comment options

@FRizzieri
Comment options

@MarcioLacerda
Comment options

@juliancesar
Comment options

Answer selected by sojan-official
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants