Open
Description
I use git worktree
so that I can easily work on many branches at once. However, if I try to build using dev.Dockerfile
, this does not work. I get the following error:
87.40 $ git restore build/.gitkeep
87.41 fatal: not a git repository: /go/src/github.com/lightninglabs/lightning-terminal/../.bare/worktrees/database_build_flags
87.42 error Command failed with exit code 128.
87.42 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
------
failed to solve: executor failed running [/bin/sh -c cd /go/src/github.com/lightninglabs/lightning-terminal/app && yarn install && yarn build]: exit code: 128
Inside the worktree on the host I run:
$ cat .git
gitdir: ../.bare/worktrees/database_build_flags
$
This directory exists on the host, but inside the docker container it does not because it is not copied in by
lightning-terminal/dev.Dockerfile
Lines 6 to 9 in 4cc7bf2
If I remove this line
lightning-terminal/app/package.json
Line 11 in 4cc7bf2
Building outside of docker does work without removing that line.