Spaces:
Sleeping
Sleeping
GabrielLogspace
commited on
Commit
•
8149f13
1
Parent(s):
c6387a8
Update Dockerfile
Browse files- Dockerfile +9 -9
Dockerfile
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
FROM nikolaik/python-nodejs:python3.10-nodejs21
|
2 |
|
|
|
3 |
# Update and install required packages
|
4 |
RUN apt-get update && apt-get install gcc g++ git make pipx -y
|
5 |
|
@@ -13,18 +14,17 @@ RUN git clone https://github.com/logspace-ai/langflow.git $LANGFLOW_HOME \
|
|
13 |
&& cd $LANGFLOW_HOME \
|
14 |
&& git checkout zustand/io/migration && git pull
|
15 |
|
16 |
-
RUN chown -R pn:pn $LANGFLOW_HOME
|
17 |
# Copy the code into the container
|
18 |
-
|
19 |
|
20 |
USER pn
|
21 |
-
# Create logs directory and set permissions
|
22 |
-
RUN mkdir logs && chmod 777 logs
|
23 |
|
24 |
-
|
25 |
-
|
|
|
|
|
|
|
26 |
|
27 |
-
|
28 |
-
RUN make setup_poetry && make install_frontend && make build_frontend && make install_backend
|
29 |
|
30 |
-
CMD ["make", "
|
|
|
1 |
FROM nikolaik/python-nodejs:python3.10-nodejs21
|
2 |
|
3 |
+
USER root
|
4 |
# Update and install required packages
|
5 |
RUN apt-get update && apt-get install gcc g++ git make pipx -y
|
6 |
|
|
|
14 |
&& cd $LANGFLOW_HOME \
|
15 |
&& git checkout zustand/io/migration && git pull
|
16 |
|
|
|
17 |
# Copy the code into the container
|
18 |
+
RUN chown -R pn:pn $LANGFLOW_HOME
|
19 |
|
20 |
USER pn
|
|
|
|
|
21 |
|
22 |
+
WORKDIR $LANGFLOW_HOME
|
23 |
+
|
24 |
+
# Create logs directory
|
25 |
+
RUN mkdir logs && chmod 777 logs
|
26 |
+
RUN pipx install poetry
|
27 |
|
28 |
+
RUN make install_frontend && make build_frontend && make install_backend
|
|
|
29 |
|
30 |
+
CMD ["make", "start", "host=0.0.0.0", "port=7860", "log_level=debug", "path=/home/pn/langflow/src/backend/base/langflow/frontend"]
|