Gabriel Luiz Freitas Almeida commited on
Commit
1095a91
·
verified ·
1 Parent(s): 0343381

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -4
Dockerfile CHANGED
@@ -1,13 +1,11 @@
1
  FROM nikolaik/python-nodejs:python3.10-nodejs21
2
 
3
- RUN useradd -m -u 1000 user
4
 
5
- USER user
6
 
7
  # Update and install required packages
8
  RUN apt-get update && apt-get install gcc g++ git make pipx -y
9
 
10
- ENV LANGFLOW_HOME=/home/langflow \
11
  PATH=/root/.local/bin:$PATH
12
  ENV LANGFLOW_DATABASE_URL=sqlite:////home/langflow/langflow.db
13
 
@@ -25,7 +23,7 @@ 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
 
1
  FROM nikolaik/python-nodejs:python3.10-nodejs21
2
 
 
3
 
 
4
 
5
  # Update and install required packages
6
  RUN apt-get update && apt-get install gcc g++ git make pipx -y
7
 
8
+ ENV LANGFLOW_HOME=/home/user \
9
  PATH=/root/.local/bin:$PATH
10
  ENV LANGFLOW_DATABASE_URL=sqlite:////home/langflow/langflow.db
11
 
 
23
 
24
  ### Update permissions for Langflow
25
  USER root
26
+ RUN chmod 777 /home/user/*
27
  USER user
28
 
29
  # Update the config.yaml file, build and install the langflow package