Flowise
Flowise copied to clipboard
[BUG] Docker Local Repo
Docker build (Dockerfile in the project root) fails with:
=> [ 8/10] RUN yarn install 208.6s
=> [ 9/10] COPY . . 0.3s
=> ERROR [10/10] RUN yarn build 1.0s
------
> [10/10] RUN yarn build:
#15 0.630 yarn run v1.22.19
#15 0.750 $ turbo run build
#15 0.945 thread 'main' panicked at 'Failed to execute turbo.: Os { code: 2, kind: NotFound, message: "No such file or directory" }', crates/turborepo/src/main.rs:50:10
#15 0.945 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
#15 0.980 error Command failed with exit code 101.
#15 0.980 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
------
executor failed running [/bin/sh -c yarn build]: exit code: 101
Try adding this line RUN apk add --update libc6-compat
https://stackoverflow.com/questions/75174308/turbo-crashes-with-any-command-in-official-node-docker-image-alpine
Not an expert on Docker, appreciate any help on getting Docker to build and run the local repo
@HenryHengZJ thanks! yes, tried it already, but had another error in this case. I assume that project repository should contain a working Docker that runs everywhere...
Hey, @morfeusys
I had the same problem few days ago when I tried to build image from scratch.
If you're a Mac M1 user - just try to specify platform
parameter, e.g. linux/amd64
or linux/x86_64
and turn off Rosetta in your Docker Desktop instance - it's still buggy for now
let me resolve this issue.
Put up the fix here - https://github.com/FlowiseAI/Flowise/pull/183
Also for windows make sure files inside packages/server/bin
are all LF
endings instead of CRLF
:
@morfeusys let me know if this is still an issue.
and also thanks @tao12345666333 for taking a stab on this!