File size: 784 Bytes
3ac3fbf
 
4fb5f9f
8e6706d
e4ab603
8f5d5fe
 
5db1ab6
4fb5f9f
9f426c7
39f15c9
8f5d5fe
9f426c7
5ec2854
e4ab603
8f5d5fe
e4ab603
8e6706d
6000f56
 
 
4fb5f9f
33821de
e4ab603
c281631
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
FROM nikolaik/python-nodejs

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

ENV LANGFLOW_HOME=/home/langflow \
    PATH=/root/.local/bin:$PATH

# 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 db

# Copy the code into the container
WORKDIR $LANGFLOW_HOME
COPY . .

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

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

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