Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yarn install failed during docker-compose build #375

Open
MisterMunchkin opened this issue Aug 13, 2022 · 0 comments
Open

yarn install failed during docker-compose build #375

MisterMunchkin opened this issue Aug 13, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@MisterMunchkin
Copy link

What happened?
yarn install failed when running docker-compose build, but running yarn install manually works fine

Steps to reproduce

  1. run docker-compose build

What did you expect to happen?
To yarn install successfully

What happened instead?
Getting this error

 51.40 [4/4] Building fresh packages...
52.64 $ git config core.hooksPath .githooks
52.65 fatal: not in a git directory
52.67 error Command failed with exit code 128.
52.67 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

executor failed running [/bin/sh -c yarn install]: exit code: 128
ERROR: Service 'app' failed to build : Build failed

Is this possibly because Dockerfile does mkdir home/node/app and that directory doesn't have a .git initialized?

@MisterMunchkin MisterMunchkin added the bug Something isn't working label Aug 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant