#support

Resolving Docker Build Error in Chatwoot Project

TLDR nedhro had an issue with a docker build in the Chatwoot project and resolved it by initializing Git in the folder.

Powered by Struct AI

1

2
3mo
Solved
Join the chat
Sep 02, 2023 (3 months ago)
nedhro
Photo of md5-bf4207ffe87e840c41b9bf39a4ba56d4
nedhro
12:24 PM
After using docker-compose build base in chatwoot project folder, this is the output:

ERROR [base pre-builder 13/14] RUN git rev-parse HEAD > /app/.git_sha 0.6s
------
[base pre-builder 13/14] RUN git rev-parse HEAD > /app/.git_sha:
0.620 fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
0.620 Use '--' to separate paths from revisions, like this:
0.620 'git <command> [<revision>...] -- [<file>...]'
------
failed to solve: process "/bin/sh -c git rev-parse HEAD > /app/.git_sha" did not complete successfully: exit code: 128

any ideas on how to solve? already init the git in the folder
04:08
nedhro
04:08 PM
Well, this is the fix:

git add .
git commit -m "init"