breejs / bree

Bree is a Node.js and JavaScript job task scheduler with worker threads, cron, Date, and human syntax. Built for @ladjs, @forwardemail, @spamscanner, @cabinjs.
https://jobscheduler.net
MIT License
3.01k stars 78 forks source link

fatal: not a git repository (or any of the parent directories): .git #134

Closed danwetherald closed 2 years ago

danwetherald commented 2 years ago

When running bree script from a docker image we are seeing this error immediately once starting.

fatal: not a git repository (or any of the parent directories): .git

shadowgate15 commented 2 years ago

Could you share your Dockerfile?

danwetherald commented 2 years ago
FROM node:latest

WORKDIR /app

COPY package.json .

RUN yarn install

COPY . .

CMD ["node", "dist/cron.js"]
shadowgate15 commented 2 years ago

I would suggest checking file permissions but git should not be involved in that docker image. Bree doesn't interact with git in any way in production though so this is likely an issue with your setup.

This seems to be due to something not involving Bree so I'm going to close this issue if you find a direct link feel free to re-open this issue.