Spaces:
Sleeping
Sleeping
Gabriel Luiz Freitas Almeida
commited on
Update Dockerfile
Browse files- Dockerfile +4 -5
Dockerfile
CHANGED
@@ -1,13 +1,12 @@
|
|
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/
|
9 |
PATH=/root/.local/bin:$PATH
|
10 |
-
ENV LANGFLOW_DATABASE_URL=sqlite:////home/
|
11 |
|
12 |
# Clone the langflow repository and switch to the dev branch
|
13 |
ADD https://api.github.com/repos/logspace-ai/langflow/git/refs/heads/db version.json
|
@@ -23,8 +22,8 @@ RUN mkdir logs && chmod 777 logs
|
|
23 |
|
24 |
### Update permissions for Langflow
|
25 |
USER root
|
26 |
-
RUN chmod 777 /home/
|
27 |
-
USER
|
28 |
|
29 |
# Update the config.yaml file, build and install the langflow package
|
30 |
RUN make setup_poetry && make install_frontend && make build_frontend && make install_backend
|
|
|
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 |
|
7 |
+
ENV LANGFLOW_HOME=/home/pn \
|
8 |
PATH=/root/.local/bin:$PATH
|
9 |
+
ENV LANGFLOW_DATABASE_URL=sqlite:////home/pn/langflow.db
|
10 |
|
11 |
# Clone the langflow repository and switch to the dev branch
|
12 |
ADD https://api.github.com/repos/logspace-ai/langflow/git/refs/heads/db version.json
|
|
|
22 |
|
23 |
### Update permissions for Langflow
|
24 |
USER root
|
25 |
+
RUN chmod 777 /home/pn/*
|
26 |
+
USER pn
|
27 |
|
28 |
# Update the config.yaml file, build and install the langflow package
|
29 |
RUN make setup_poetry && make install_frontend && make build_frontend && make install_backend
|