GabrielLogspace commited on
Commit
9fd8d4f
1 Parent(s): 86c2898

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -11
Dockerfile CHANGED
@@ -1,6 +1,6 @@
1
  FROM nikolaik/python-nodejs:python3.10-nodejs21
2
 
3
-
4
  # Update and install required packages
5
  RUN apt-get update && apt-get install gcc g++ git make pipx -y
6
 
@@ -15,20 +15,18 @@ RUN git clone https://github.com/logspace-ai/langflow.git $LANGFLOW_HOME \
15
  && git checkout zustand/io/migration && git pull
16
 
17
  # Copy the code into the container
18
- WORKDIR $LANGFLOW_HOME
19
 
20
- # Create logs directory and set permissions
21
- RUN mkdir logs && chmod 777 logs
22
 
 
23
 
24
- ### Update permissions for Langflow
25
- USER root
26
- RUN chown -R pn:pn $LANGFLOW_HOME
27
- RUN chmod 777 /home/pn/langflow/*
28
- USER pn
29
 
30
- RUN make setup_poetry && make install_frontend && make build_frontend && make install_backend
31
 
32
  # Update the config.yaml file, build and install the langflow package
33
 
34
- CMD ["make", "start", "host=0.0.0.0", "port=7860", "log_level=debug", "open_browser=false"]
 
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
 
 
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
  # Update the config.yaml file, build and install the langflow package
31
 
32
+ CMD ["make", "start", "host=0.0.0.0", "port=7860", "log_level=debug"]