File size: 993 Bytes
de1a882
3ac3fbf
4fb5f9f
1763c2a
e4ab603
371e111
8f5d5fe
371e111
5db1ab6
ec2da8f
9f426c7
39f15c9
8f5d5fe
5dc3284
5ec2854
ec2da8f
 
371e111
b37b58e
371e111
ec2da8f
8e6706d
371e111
 
 
 
1763c2a
3a791b6
371e111
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM nikolaik/python-nodejs:python3.10-nodejs21

# Update and install required packages
RUN apt-get update && apt-get install gcc g++ git make pipx -y

ENV LANGFLOW_HOME=/home/langflow \
    PATH=/root/.local/bin:$PATH
ENV LANGFLOW_DATABASE_URL=sqlite:////home/langflow/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
COPY . .

# Create logs directory and set permissions
RUN mkdir logs && chmod 777 logs

# Set permissions for database folder
RUN chmod 777 /home/langflow

# Update the config.yaml file, build and install the langflow package
RUN make setup_poetry && make build && pip install dist/*.whl

CMD ["langflow","run", "--host", "0.0.0.0", "--port", "7860"]