Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

[BUG] Docker Local Repo

Open morfeusys opened this issue 1 year ago • 5 comments

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

morfeusys avatar May 17 '23 20:05 morfeusys

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 avatar May 18 '23 12:05 HenryHengZJ

@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...

morfeusys avatar May 18 '23 16:05 morfeusys

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

li7vinov-denis avatar May 18 '23 23:05 li7vinov-denis

let me resolve this issue.

tao12345666333 avatar May 25 '23 03:05 tao12345666333

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: image

@morfeusys let me know if this is still an issue.

and also thanks @tao12345666333 for taking a stab on this!

HenryHengZJ avatar May 25 '23 19:05 HenryHengZJ