GabrielLogspace commited on
Commit
18fec70
1 Parent(s): a8b51e3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -4
Dockerfile CHANGED
@@ -2,9 +2,14 @@ FROM python:3.10-slim
2
 
3
  RUN apt-get update && apt-get install gcc g++ git make -y
4
  RUN useradd -m -u 1000 user
 
 
 
 
5
  USER user
6
  ENV HOME=/home/user \
7
- PATH=/home/user/.local/bin:$PATH
 
8
 
9
  WORKDIR $HOME/app
10
 
@@ -12,6 +17,4 @@ COPY --chown=user . $HOME/app
12
 
13
  RUN pip install langflow>==0.1.7 -U --user
14
 
15
- ENV LANGFLOW_DATABASE_URL=sqlite:////home/langflow/langflow.db
16
-
17
- CMD LANGFLOW_DATABASE_URL=sqlite:////home/langflow/langflow.db python -m langflow --host 0.0.0.0 --port 7860 --remove-api-keys
 
2
 
3
  RUN apt-get update && apt-get install gcc g++ git make -y
4
  RUN useradd -m -u 1000 user
5
+
6
+ # Create the directory and set the permissions
7
+ RUN mkdir -p /home/langflow && chown user:user /home/langflow
8
+
9
  USER user
10
  ENV HOME=/home/user \
11
+ PATH=/home/user/.local/bin:$PATH \
12
+ LANGFLOW_DATABASE_URL=sqlite:////home/langflow/langflow.db
13
 
14
  WORKDIR $HOME/app
15
 
 
17
 
18
  RUN pip install langflow>==0.1.7 -U --user
19
 
20
+ CMD python -m langflow --host 0.0.0.0 --port 7860 --remove-api-keys