Spaces:
Sleeping
Sleeping
otavioLogspace
commited on
Commit
•
5db1ab6
1
Parent(s):
e4ab603
Update Dockerfile
Browse files- Dockerfile +6 -4
Dockerfile
CHANGED
@@ -3,18 +3,20 @@ FROM nikolaik/python-nodejs
|
|
3 |
# Update and install required packages
|
4 |
RUN apt-get update && apt-get install gcc g++ git make -y
|
5 |
|
6 |
-
# Switch to the existing node user
|
7 |
-
USER node
|
8 |
-
|
9 |
ENV HOME=/home/node \
|
10 |
PATH=/home/node/.local/bin:$PATH
|
11 |
|
|
|
|
|
|
|
12 |
# Clone the langflow repository and switch to the dev branch
|
13 |
-
ADD https://api.github.com/repos/logspace-ai/langflow/git/refs/heads/dev version.json
|
14 |
RUN git clone https://github.com/logspace-ai/langflow.git $HOME/langflow \
|
15 |
&& cd $HOME/langflow \
|
16 |
&& git checkout dev
|
17 |
|
|
|
|
|
|
|
18 |
# Copy the code into the container
|
19 |
WORKDIR $HOME/langflow
|
20 |
COPY . .
|
|
|
3 |
# Update and install required packages
|
4 |
RUN apt-get update && apt-get install gcc g++ git make -y
|
5 |
|
|
|
|
|
|
|
6 |
ENV HOME=/home/node \
|
7 |
PATH=/home/node/.local/bin:$PATH
|
8 |
|
9 |
+
# Switch to the root user
|
10 |
+
USER root
|
11 |
+
|
12 |
# Clone the langflow repository and switch to the dev branch
|
|
|
13 |
RUN git clone https://github.com/logspace-ai/langflow.git $HOME/langflow \
|
14 |
&& cd $HOME/langflow \
|
15 |
&& git checkout dev
|
16 |
|
17 |
+
# Switch back to the node user
|
18 |
+
USER node
|
19 |
+
|
20 |
# Copy the code into the container
|
21 |
WORKDIR $HOME/langflow
|
22 |
COPY . .
|