Spaces:
Sleeping
Sleeping
Gabriel Luiz Freitas Almeida
commited on
Update Dockerfile
Browse files- Dockerfile +6 -8
Dockerfile
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
FROM nikolaik/python-nodejs:python3.10-nodejs21
|
| 2 |
|
| 3 |
-
USER
|
| 4 |
# Update and install required packages
|
| 5 |
RUN apt-get update && apt-get install gcc g++ git make pipx -y
|
| 6 |
|
|
@@ -15,18 +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 |
WORKDIR $LANGFLOW_HOME
|
| 19 |
|
| 20 |
-
# Create logs directory
|
| 21 |
RUN mkdir logs && chmod 777 logs
|
| 22 |
|
| 23 |
|
| 24 |
-
### Update permissions for Langflow
|
| 25 |
-
USER root
|
| 26 |
-
RUN chown -R pn:pn $LANGFLOW_HOME
|
| 27 |
-
RUN chmod 777 /home/pn/langflow/*
|
| 28 |
-
USER pn
|
| 29 |
-
|
| 30 |
RUN make setup_poetry && make install_frontend && make build_frontend && make install_backend
|
| 31 |
|
| 32 |
# Update the config.yaml file, build and install the langflow package
|
|
|
|
| 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 pipx -y
|
| 6 |
|
|
|
|
| 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 |
|
| 27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
RUN make setup_poetry && make install_frontend && make build_frontend && make install_backend
|
| 29 |
|
| 30 |
# Update the config.yaml file, build and install the langflow package
|