Spaces:
Sleeping
Sleeping
Ilyas KHIAT
commited on
Commit
•
4f466f5
1
Parent(s):
a713e3e
test
Browse files- Dockerfile +32 -12
Dockerfile
CHANGED
@@ -1,26 +1,46 @@
|
|
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 |
-
|
|
|
16 |
|
|
|
17 |
COPY --chown=user . $HOME/app
|
18 |
|
|
|
19 |
|
20 |
|
21 |
-
|
22 |
-
#COPY .chainlit .chainlit
|
23 |
|
|
|
24 |
|
25 |
-
CMD ["chainlit", "run", "
|
26 |
-
# CMD ["ls", "-a"]
|
|
|
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 |
+
|
20 |
+
|
21 |
+
# #COPY . .
|
22 |
+
# #COPY .chainlit .chainlit
|
23 |
+
|
24 |
+
|
25 |
+
# CMD ["chainlit", "run", "rag_app.py", "--host", "0.0.0.0", "--port", "7860"]
|
26 |
+
# # CMD ["ls", "-a"]
|
27 |
+
|
28 |
+
FROM python:3.11
|
29 |
|
30 |
RUN useradd -m -u 1000 user
|
31 |
USER user
|
|
|
|
|
32 |
|
33 |
+
ENV HOME=/code/user \
|
34 |
+
PATH=/code/user/.local/bin:$PATH
|
35 |
|
36 |
+
WORKDIR $HOME/app
|
37 |
COPY --chown=user . $HOME/app
|
38 |
|
39 |
+
COPY ./requirements.txt $HOME/app/requirements.txt
|
40 |
|
41 |
|
42 |
+
RUN pip install --no-cache-dir --upgrade -r $HOME/app/requirements.txt
|
|
|
43 |
|
44 |
+
COPY . .
|
45 |
|
46 |
+
CMD ["chainlit", "run", "app.py", "--port", "7860"]
|
|