Spaces:
Sleeping
Sleeping
GabrielLogspace
commited on
Commit
•
371e111
1
Parent(s):
4af1947
Update Dockerfile
Browse files- Dockerfile +12 -12
Dockerfile
CHANGED
@@ -1,12 +1,12 @@
|
|
|
|
1 |
FROM nikolaik/python-nodejs:python3.10-nodejs21
|
2 |
|
3 |
-
USER root
|
4 |
# Update and install required packages
|
5 |
-
RUN apt-get update && apt-get install gcc g++ git make
|
6 |
|
7 |
-
ENV LANGFLOW_HOME=/home/
|
8 |
PATH=/root/.local/bin:$PATH
|
9 |
-
ENV LANGFLOW_DATABASE_URL=sqlite:////home/
|
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
|
@@ -15,16 +15,16 @@ RUN git clone https://github.com/logspace-ai/langflow.git $LANGFLOW_HOME \
|
|
15 |
&& git checkout zustand/io/migration && git pull
|
16 |
|
17 |
# Copy the code into the container
|
18 |
-
RUN chown -R pn:pn $LANGFLOW_HOME
|
19 |
-
|
20 |
-
USER pn
|
21 |
-
|
22 |
WORKDIR $LANGFLOW_HOME
|
|
|
23 |
|
24 |
-
# Create logs directory
|
25 |
RUN mkdir logs && chmod 777 logs
|
26 |
-
RUN pipx install poetry
|
27 |
|
28 |
-
|
|
|
|
|
|
|
|
|
29 |
|
30 |
-
CMD ["
|
|
|
1 |
+
971 Bytes
|
2 |
FROM nikolaik/python-nodejs:python3.10-nodejs21
|
3 |
|
|
|
4 |
# Update and install required packages
|
5 |
+
RUN apt-get update && apt-get install gcc g++ git make -y
|
6 |
|
7 |
+
ENV LANGFLOW_HOME=/home/langflow \
|
8 |
PATH=/root/.local/bin:$PATH
|
9 |
+
ENV LANGFLOW_DATABASE_URL=sqlite:////home/langflow/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
|
|
|
15 |
&& git checkout zustand/io/migration && git pull
|
16 |
|
17 |
# Copy the code into the container
|
|
|
|
|
|
|
|
|
18 |
WORKDIR $LANGFLOW_HOME
|
19 |
+
COPY . .
|
20 |
|
21 |
+
# Create logs directory and set permissions
|
22 |
RUN mkdir logs && chmod 777 logs
|
|
|
23 |
|
24 |
+
# Set permissions for database folder
|
25 |
+
RUN chmod 777 /home/langflow
|
26 |
+
|
27 |
+
# Update the config.yaml file, build and install the langflow package
|
28 |
+
RUN make build && pip install dist/*.whl
|
29 |
|
30 |
+
CMD ["langflow","run", "--host", "0.0.0.0", "--port", "7860"]
|