langflow
langflow copied to clipboard
Fix dockerfile
Facing error when building image.

Logspace repo on Docker Hub is not accessible.
Yeah. I'll look into that now.
Those Dockerfiles were being used mainly for development but things changed a bit in the last few days.
Thanks for the heads up.
With docker compose up in the root folder you should be able to run the development containers.
Running it in the docker_example folder should run langflow with the latest version.
I see this post docker-compose up: frontend_1 | sh: react-scripts: not found
EDIT: I see it is using dev.Dockerfile. If I run this in src/frontend before the root up, it works.
npm i
Hey. I made some changes on a feature branch to test this and I think I got it working.
Would you be willing to test it on your side too? The branch is called fix_frontend_dockerfile.
You should delete the node_modules folder to make sure you have a clean slate to test. This is an issue with npm binary and the commit I made fixes that I think.
If you run make install_frontend before running docker compose up you should be good to go too, though.
We might update the Makefile to make it easier in case this fix does not work.
I'v added a dev command to the makefile which runs make install_frontend then builds and runs the containers.
This should create a reliable way to run a dev environment.
The containers are working pretty well now with the dev command. We can open a new issue if other bugs arise.
Thanks for the heads up, @yantxs!