langflow
langflow copied to clipboard
Docker failing to build
Describe the bug docker-compose build fails to build docker container.
Browser and Version
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
To Reproduce Steps to reproduce the behavior:
- In root directory type docker-compose build in terminal
- Get error
=> CANCELED [3/7] RUN apt-get update && apt-get install gcc g++ curl build-essential postgresql-server-dev-all -y
failed to solve: executor failed running [/bin/sh -c chmod +x set_proxy.sh && ./set_proxy.sh]: exit code: 127
Additional context Add any other context about the problem here.
Same issue here error: => CANCELED [3/7] RUN apt-get update && apt-get install gcc g++ curl build-essential postgresql-server-dev-all - 0.8s failed to solve: executor failed running [/bin/sh -c chmod +x set_proxy.sh && ./set_proxy.sh]: exit code: 127
When trying to build docker-compose build , also tried --no-cache
FYI this version installs ok https://github.com/logspace-ai/langflow/archive/refs/tags/v0.0.56.zip now having other issues
Could you try running make dev build=1?
i tried that. i am getting this error either way.
[langflow-frontend builder-client 5/6] RUN chmod +x set_proxy.sh && ./set_proxy.sh: #0 0.527 /bin/sh: 1: ./set_proxy.sh: not found
This set_proxy.sh script was created to make docker-compose change the proxy to what is needed by docker to connect both containers. Right now, we are changing manually in package.json, which is not ideal but seems to work better because of docker's caching.
We could implement something better if you have any suggestions.
if you merge my fix we can close this. The line endings were windows.
https://github.com/logspace-ai/langflow/pull/254
far as the changing in package.json thing. i can help with that probably using checkpoints in docker and pushing it to be later? or a script you run post install to change if you need? Probably the same script. If you can outline the problem more I can probably solve it.
Yes, I applied your modifications and successfully built the docker image
Hey @bobsburgers, I'd love help with that, actually. That script was just a hacky way of doing it and a better solution is definitely appreciated.
I've just merged #254 btw
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.