Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +23 -26
Dockerfile
CHANGED
@@ -1,31 +1,28 @@
|
|
1 |
FROM python:3.10
|
2 |
|
3 |
-
WORKDIR /
|
4 |
-
|
5 |
-
COPY ./requirements.txt /
|
6 |
-
|
7 |
-
|
8 |
-
RUN
|
9 |
-
|
10 |
-
RUN
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
COPY . .
|
28 |
-
COPY .chainlit .chainlit
|
29 |
|
30 |
|
31 |
CMD ["chainlit", "run", "/home/usr/rag_app.py", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
1 |
FROM python:3.10
|
2 |
|
3 |
+
WORKDIR /code
|
4 |
+
|
5 |
+
COPY ./requirements.txt /code/requirements.txt
|
6 |
+
|
7 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
8 |
+
RUN apt update && apt install -y ffmpeg
|
9 |
+
|
10 |
+
RUN useradd -m -u 1000 user
|
11 |
+
USER user
|
12 |
+
ENV HOME=/home/user \
|
13 |
+
PATH=/home/user/.local/bin:$PATH
|
14 |
+
|
15 |
+
WORKDIR $HOME/app
|
16 |
+
|
17 |
+
COPY --chown=user . $HOME/app
|
18 |
+
|
19 |
+
#ENV H2O_WAVE_LISTEN=":7860"
|
20 |
+
#ENV H2O_WAVE_ADDRESS='http://127.0.0.1:7860'
|
21 |
+
|
22 |
+
|
23 |
+
|
24 |
+
#COPY . .
|
25 |
+
#COPY .chainlit .chainlit
|
|
|
|
|
|
|
26 |
|
27 |
|
28 |
CMD ["chainlit", "run", "/home/usr/rag_app.py", "--host", "0.0.0.0", "--port", "7860"]
|