Spaces:
Sleeping
Sleeping
Gabriel Luiz Freitas Almeida
commited on
Set docker image to the official Langflow image
Browse files- Dockerfile +1 -31
Dockerfile
CHANGED
|
@@ -1,31 +1 @@
|
|
| 1 |
-
FROM
|
| 2 |
-
|
| 3 |
-
USER root
|
| 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/langflow \
|
| 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
|
| 13 |
-
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 |
-
|
| 21 |
-
USER pn
|
| 22 |
-
|
| 23 |
-
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"]
|
|
|
|
| 1 |
+
FROM langflowai/langflow:1.0-alpha
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|