Spaces:
Sleeping
Sleeping
Gabriel Luiz Freitas Almeida
commited on
Update Dockerfile
Browse files- 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/
|
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/
|
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
|