Spaces:
Sleeping
Sleeping
otavioLogspace
commited on
Commit
•
e4ab603
1
Parent(s):
8e6706d
updated version to try fix error on build
Browse files- Dockerfile +17 -11
Dockerfile
CHANGED
@@ -1,21 +1,27 @@
|
|
1 |
-
|
2 |
FROM nikolaik/python-nodejs
|
3 |
|
4 |
# Update and install required packages
|
5 |
RUN apt-get update && apt-get install gcc g++ git make -y
|
6 |
-
|
7 |
-
|
8 |
-
|
|
|
|
|
|
|
9 |
|
10 |
# Clone the langflow repository and switch to the dev branch
|
11 |
ADD https://api.github.com/repos/logspace-ai/langflow/git/refs/heads/dev version.json
|
12 |
-
RUN git clone https://github.com/logspace-ai/langflow.git $HOME/langflow
|
13 |
-
|
14 |
-
|
15 |
-
# RUN useradd -m -u 1000 user
|
16 |
|
|
|
|
|
|
|
17 |
|
18 |
-
COPY --chown=user . $HOME/langflow
|
19 |
# Update the config.yaml file, build and install the langflow package
|
20 |
-
RUN sed -i 's/dev: false/dev: true/' src/backend/langflow/config.yaml
|
21 |
-
|
|
|
|
|
|
|
|
|
|
1 |
FROM nikolaik/python-nodejs
|
2 |
|
3 |
# Update and install required packages
|
4 |
RUN apt-get update && apt-get install gcc g++ git make -y
|
5 |
+
|
6 |
+
# Switch to the existing node user
|
7 |
+
USER node
|
8 |
+
|
9 |
+
ENV HOME=/home/node \
|
10 |
+
PATH=/home/node/.local/bin:$PATH
|
11 |
|
12 |
# Clone the langflow repository and switch to the dev branch
|
13 |
ADD https://api.github.com/repos/logspace-ai/langflow/git/refs/heads/dev version.json
|
14 |
+
RUN git clone https://github.com/logspace-ai/langflow.git $HOME/langflow \
|
15 |
+
&& cd $HOME/langflow \
|
16 |
+
&& git checkout dev
|
|
|
17 |
|
18 |
+
# Copy the code into the container
|
19 |
+
WORKDIR $HOME/langflow
|
20 |
+
COPY . .
|
21 |
|
|
|
22 |
# Update the config.yaml file, build and install the langflow package
|
23 |
+
RUN sed -i 's/dev: false/dev: true/' src/backend/langflow/config.yaml \
|
24 |
+
&& make build \
|
25 |
+
&& pip install dist/*.tar.gz
|
26 |
+
|
27 |
+
CMD ["langflow", "--host", "0.0.0.0", "--port", "7860"]
|