Spaces:
Sleeping
Sleeping
GabrielLogspace
commited on
Commit
•
92fa9e5
1
Parent(s):
25d40af
Update Dockerfile
Browse files- Dockerfile +11 -7
Dockerfile
CHANGED
@@ -3,23 +3,27 @@ FROM nikolaik/python-nodejs:python3.10-nodejs21
|
|
3 |
# Update and install required packages
|
4 |
RUN apt-get update && apt-get install gcc g++ git make pipx -y
|
5 |
|
6 |
-
ENV LANGFLOW_HOME=/home/
|
7 |
PATH=/root/.local/bin:$PATH
|
8 |
-
ENV LANGFLOW_DATABASE_URL=sqlite:////home/
|
9 |
-
|
10 |
# Clone the langflow repository and switch to the dev branch
|
11 |
ADD https://api.github.com/repos/logspace-ai/langflow/git/refs/heads/db version.json
|
12 |
RUN git clone https://github.com/logspace-ai/langflow.git $LANGFLOW_HOME \
|
13 |
&& cd $LANGFLOW_HOME \
|
14 |
&& git checkout zustand/io/migration && git pull
|
15 |
|
|
|
16 |
WORKDIR $LANGFLOW_HOME
|
|
|
17 |
|
18 |
-
# Create logs directory
|
19 |
RUN mkdir logs && chmod 777 logs
|
20 |
-
RUN pipx install poetry
|
21 |
|
22 |
-
|
|
|
23 |
|
24 |
# Update the config.yaml file, build and install the langflow package
|
25 |
-
|
|
|
|
|
|
3 |
# Update and install required packages
|
4 |
RUN apt-get update && apt-get install gcc g++ git make pipx -y
|
5 |
|
6 |
+
ENV LANGFLOW_HOME=/home/langflow \
|
7 |
PATH=/root/.local/bin:$PATH
|
8 |
+
ENV LANGFLOW_DATABASE_URL=sqlite:////home/langflow/langflow.db
|
9 |
+
|
10 |
# Clone the langflow repository and switch to the dev branch
|
11 |
ADD https://api.github.com/repos/logspace-ai/langflow/git/refs/heads/db version.json
|
12 |
RUN git clone https://github.com/logspace-ai/langflow.git $LANGFLOW_HOME \
|
13 |
&& cd $LANGFLOW_HOME \
|
14 |
&& git checkout zustand/io/migration && git pull
|
15 |
|
16 |
+
# Copy the code into the container
|
17 |
WORKDIR $LANGFLOW_HOME
|
18 |
+
COPY . .
|
19 |
|
20 |
+
# Create logs directory and set permissions
|
21 |
RUN mkdir logs && chmod 777 logs
|
|
|
22 |
|
23 |
+
# Set permissions for database folder
|
24 |
+
RUN chmod 777 /home/langflow
|
25 |
|
26 |
# Update the config.yaml file, build and install the langflow package
|
27 |
+
RUN make setup_poetry && make install_frontend && make build_frontend && make install_backend
|
28 |
+
|
29 |
+
CMD ["make", "run_cli_debug", "host=0.0.0.0", "port=7860", "log_level=debug", "open_browser=false"]
|