Spaces:
Sleeping
Sleeping
otavioLogspace
commited on
Commit
•
c281631
1
Parent(s):
39f15c9
Update Dockerfile
Browse files- Dockerfile +6 -4
Dockerfile
CHANGED
@@ -12,12 +12,14 @@ ENV HOME=/home/node \
|
|
12 |
|
13 |
# Clone the langflow repository and switch to the dev branch
|
14 |
ADD https://api.github.com/repos/logspace-ai/langflow/git/refs/heads/dev version.json
|
|
|
15 |
RUN git clone https://github.com/logspace-ai/langflow.git $LANGFLOW_HOME \
|
16 |
-
&&
|
17 |
-
|
|
|
|
|
18 |
|
19 |
# Copy the code into the container
|
20 |
-
WORKDIR $LANGFLOW_HOME
|
21 |
COPY . .
|
22 |
|
23 |
# Update the config.yaml file, build and install the langflow package
|
@@ -25,4 +27,4 @@ RUN sed -i 's/dev: false/dev: true/' src/backend/langflow/config.yaml \
|
|
25 |
&& make -C $LANGFLOW_HOME/src/backend/langflow/ build \
|
26 |
&& pip install $LANGFLOW_HOME/src/backend/langflow/dist/*.tar.gz
|
27 |
|
28 |
-
CMD ["langflow", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
12 |
|
13 |
# Clone the langflow repository and switch to the dev branch
|
14 |
ADD https://api.github.com/repos/logspace-ai/langflow/git/refs/heads/dev version.json
|
15 |
+
USER root
|
16 |
RUN git clone https://github.com/logspace-ai/langflow.git $LANGFLOW_HOME \
|
17 |
+
&& chown -R node:node $LANGFLOW_HOME
|
18 |
+
USER node
|
19 |
+
WORKDIR $LANGFLOW_HOME
|
20 |
+
RUN git checkout dev
|
21 |
|
22 |
# Copy the code into the container
|
|
|
23 |
COPY . .
|
24 |
|
25 |
# Update the config.yaml file, build and install the langflow package
|
|
|
27 |
&& make -C $LANGFLOW_HOME/src/backend/langflow/ build \
|
28 |
&& pip install $LANGFLOW_HOME/src/backend/langflow/dist/*.tar.gz
|
29 |
|
30 |
+
CMD ["langflow", "--host", "0.0.0.0", "--port", "7860"]
|