Gabriel Luiz Freitas Almeida commited on
Commit
a13d1eb
·
verified ·
1 Parent(s): 324aa08

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -23,10 +23,10 @@ WORKDIR $LANGFLOW_HOME
23
  # Create logs directory and set permissions
24
  RUN mkdir logs && chmod 777 logs
25
 
26
- # Set permissions for database folder
 
27
  RUN chmod 777 /home/langflow
28
-
29
- RUN chown -R user:user /home/langflow
30
 
31
  # Update the config.yaml file, build and install the langflow package
32
  RUN make setup_poetry && make install_frontend && make build_frontend && make install_backend
 
23
  # Create logs directory and set permissions
24
  RUN mkdir logs && chmod 777 logs
25
 
26
+ ### Update permissions for Langflow
27
+ USER root
28
  RUN chmod 777 /home/langflow
29
+ USER user
 
30
 
31
  # Update the config.yaml file, build and install the langflow package
32
  RUN make setup_poetry && make install_frontend && make build_frontend && make install_backend