Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +9 -1
Dockerfile
CHANGED
@@ -14,7 +14,6 @@ RUN git clone https://github.com/logspace-ai/langflow.git $LANGFLOW_HOME \
|
|
14 |
&& cd $LANGFLOW_HOME \
|
15 |
&& git checkout dev && git pull
|
16 |
|
17 |
-
|
18 |
# Copy the code into the container
|
19 |
RUN chown -R pn:pn $LANGFLOW_HOME
|
20 |
|
@@ -24,8 +23,17 @@ WORKDIR $LANGFLOW_HOME
|
|
24 |
|
25 |
# Create logs directory
|
26 |
RUN mkdir logs && chmod 777 logs
|
|
|
|
|
27 |
RUN pipx install poetry
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
RUN make install_frontend && make build_frontend && make install_backend
|
30 |
|
31 |
CMD ["make", "start", "host=0.0.0.0", "port=7860", "log_level=debug", "path=/home/pn/langflow/src/backend/base/langflow/frontend"]
|
|
|
14 |
&& cd $LANGFLOW_HOME \
|
15 |
&& git checkout dev && git pull
|
16 |
|
|
|
17 |
# Copy the code into the container
|
18 |
RUN chown -R pn:pn $LANGFLOW_HOME
|
19 |
|
|
|
23 |
|
24 |
# Create logs directory
|
25 |
RUN mkdir logs && chmod 777 logs
|
26 |
+
|
27 |
+
# Install poetry using pipx
|
28 |
RUN pipx install poetry
|
29 |
|
30 |
+
# Copy the requirements.txt file into the container
|
31 |
+
COPY requirements.txt $LANGFLOW_HOME/
|
32 |
+
|
33 |
+
# Install the Python dependencies
|
34 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
35 |
+
|
36 |
+
# Build the frontend and backend
|
37 |
RUN make install_frontend && make build_frontend && make install_backend
|
38 |
|
39 |
CMD ["make", "start", "host=0.0.0.0", "port=7860", "log_level=debug", "path=/home/pn/langflow/src/backend/base/langflow/frontend"]
|