Spaces:
Sleeping
Sleeping
GabrielLogspace
commited on
Commit
•
ada6ba5
1
Parent(s):
217cf51
Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -2,13 +2,13 @@ FROM python:3.10-slim
|
|
2 |
|
3 |
RUN apt-get update && apt-get install gcc g++ git make -y
|
4 |
RUN useradd -m -u 1000 user
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
|
9 |
WORKDIR $HOME/app
|
10 |
|
11 |
-
|
12 |
|
13 |
RUN pip install langflow>==0.0.86 -U --user
|
14 |
CMD ["python", "-m", "langflow", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
2 |
|
3 |
RUN apt-get update && apt-get install gcc g++ git make -y
|
4 |
RUN useradd -m -u 1000 user
|
5 |
+
USER user
|
6 |
+
ENV HOME=/home/user \
|
7 |
+
PATH=/home/user/.local/bin:$PATH
|
8 |
|
9 |
WORKDIR $HOME/app
|
10 |
|
11 |
+
COPY --chown=user . $HOME/app
|
12 |
|
13 |
RUN pip install langflow>==0.0.86 -U --user
|
14 |
CMD ["python", "-m", "langflow", "--host", "0.0.0.0", "--port", "7860"]
|