GabrielLogspace commited on
Commit
5ec2854
1 Parent(s): 4fb5f9f

Update Dockerfile

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