FROM nikolaik/python-nodejs:python3.10-nodejs21 USER pn # Update and install required packages RUN apt-get update && apt-get install gcc g++ git make pipx -y ENV LANGFLOW_HOME=/home/pn/langflow \ PATH=/root/.local/bin:$PATH ENV LANGFLOW_DATABASE_URL=sqlite:////home/pn/langflow.db # Clone the langflow repository and switch to the dev branch ADD https://api.github.com/repos/logspace-ai/langflow/git/refs/heads/db version.json RUN git clone https://github.com/logspace-ai/langflow.git $LANGFLOW_HOME \ && cd $LANGFLOW_HOME \ && git checkout zustand/io/migration && git pull # Copy the code into the container WORKDIR $LANGFLOW_HOME # Create logs directory and set permissions RUN mkdir logs && chmod 777 logs ### Update permissions for Langflow USER root RUN chown -R pn:pn $LANGFLOW_HOME RUN chmod 777 /home/pn/langflow/* USER pn RUN make setup_poetry && make install_frontend && make build_frontend && make install_backend # Update the config.yaml file, build and install the langflow package CMD ["make", "start", "host=0.0.0.0", "port=7860", "log_level=debug", "open_browser=false"]