GabrielLogspace commited on
Commit
81c639f
1 Parent(s): 559fdf4

Testing new permissions

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -1
Dockerfile CHANGED
@@ -1,6 +1,14 @@
1
  FROM python:3.10-slim
2
 
3
- RUN apt-get update && apt-get install gcc git make -y
 
 
 
 
 
 
 
 
4
 
5
  RUN pip install langflow>=0.0.46 -U
6
  CMD ["langflow", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.10-slim
2
 
3
+ RUN useradd -m -u 1000 user
4
+ USER user
5
+ ENV HOME=/home/user \
6
+ PATH=/home/user/.local/bin:$PATH
7
+
8
+ WORKDIR $HOME/app
9
+
10
+ COPY --chown=user . $HOME/app
11
+ RUN apt-get update && apt-get install gcc g++ git make -y
12
 
13
  RUN pip install langflow>=0.0.46 -U
14
  CMD ["langflow", "--host", "0.0.0.0", "--port", "7860"]