Spaces:
Sleeping
Sleeping
GabrielLogspace
commited on
Commit
•
8e6706d
1
Parent(s):
39060f5
Update Dockerfile
Browse files- Dockerfile +9 -3
Dockerfile
CHANGED
@@ -2,14 +2,20 @@
|
|
2 |
FROM nikolaik/python-nodejs
|
3 |
|
4 |
# Update and install required packages
|
5 |
-
RUN apt-get update && apt-get install
|
|
|
|
|
|
|
6 |
|
7 |
# Clone the langflow repository and switch to the dev branch
|
8 |
ADD https://api.github.com/repos/logspace-ai/langflow/git/refs/heads/dev version.json
|
9 |
-
RUN git clone https://github.com/logspace-ai/langflow.git
|
10 |
-
WORKDIR /langflow
|
11 |
RUN git checkout dev
|
|
|
12 |
|
|
|
|
|
13 |
# Update the config.yaml file, build and install the langflow package
|
14 |
RUN sed -i 's/dev: false/dev: true/' src/backend/langflow/config.yaml && make build && pip install dist/*.tar.gz
|
15 |
CMD ["langflow", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
2 |
FROM nikolaik/python-nodejs
|
3 |
|
4 |
# Update and install required packages
|
5 |
+
RUN apt-get update && apt-get install gcc g++ git make -y
|
6 |
+
USER user
|
7 |
+
ENV HOME=/home/user \
|
8 |
+
PATH=/home/user/.local/bin:$PATH
|
9 |
|
10 |
# Clone the langflow repository and switch to the dev branch
|
11 |
ADD https://api.github.com/repos/logspace-ai/langflow/git/refs/heads/dev version.json
|
12 |
+
RUN git clone https://github.com/logspace-ai/langflow.git $HOME/langflow
|
13 |
+
WORKDIR $HOME/langflow
|
14 |
RUN git checkout dev
|
15 |
+
# RUN useradd -m -u 1000 user
|
16 |
|
17 |
+
|
18 |
+
COPY --chown=user . $HOME/langflow
|
19 |
# Update the config.yaml file, build and install the langflow package
|
20 |
RUN sed -i 's/dev: false/dev: true/' src/backend/langflow/config.yaml && make build && pip install dist/*.tar.gz
|
21 |
CMD ["langflow", "--host", "0.0.0.0", "--port", "7860"]
|