File size: 771 Bytes
3ac3fbf
 
4fb5f9f
8e6706d
e4ab603
 
 
3ac3fbf
5db1ab6
 
 
4fb5f9f
e4ab603
 
 
5ec2854
5db1ab6
 
 
e4ab603
 
 
8e6706d
4fb5f9f
e4ab603
 
 
 
 
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
30
FROM nikolaik/python-nodejs

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

ENV HOME=/home/node \
	PATH=/home/node/.local/bin:$PATH

# Switch to the root user
USER root

# Clone the langflow repository and switch to the dev branch
RUN git clone https://github.com/logspace-ai/langflow.git $HOME/langflow \
    && cd $HOME/langflow \
    && git checkout dev

# Switch back to the node user
USER node

# Copy the code into the container
WORKDIR $HOME/langflow
COPY . .

# Update the config.yaml file, build and install the langflow package
RUN sed -i 's/dev: false/dev: true/' src/backend/langflow/config.yaml \
    && make build \
    && pip install dist/*.tar.gz

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