Perrine commited on
Commit
36c95c4
·
verified ·
1 Parent(s): 4acb543

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -26
Dockerfile CHANGED
@@ -1,31 +1,28 @@
1
  FROM python:3.10
2
 
3
- WORKDIR /home/usr/
4
-
5
- COPY ./requirements.txt /home/usr/requirements.txt
6
-
7
-
8
- RUN pip install --no-cache-dir --upgrade -r /home/usr/requirements.txt
9
-
10
- RUN mkdir .files/
11
- RUN mkdir .cache/
12
- RUN mkdir .cache/huggingface
13
- RUN mkdir .cache/huggingface/hub
14
- RUN mkdir .cache/huggingface/hub/models--mistralai--Mixtral-8x7B-v0.1
15
- RUN mkdir .cache/huggingface/hub/models--mistralai--Mixtral-8x7B-v0.1/blobs
16
- RUN mkdir .cache/huggingface/hub/models--mistralai--Mixtral-8x7B-v0.1/snapshots
17
- RUN mkdir .cache/huggingface/hub/models--mistralai--Mixtral-8x7B-v0.1/snapshots/985aa055896a8f943d4a9f2572e6ea1341823841
18
- RUN mkdir .cache/huggingface/hub/models--mistralai--Mixtral-8x7B-v0.1/refs
19
- RUN touch .cache/huggingface/hub/models--mistralai--Mixtral-8x7B-v0.1/refs/main
20
- RUN chmod 777 .cache
21
- RUN chmod 777 .cache/huggingface/hub/models--mistralai--Mixtral-8x7B-v0.1/refs/main
22
- RUN mkdir .cache/huggingface/hub/.locks
23
- RUN mkdir .cache/huggingface/hub/.locks/models--mistralai--Mixtral-8x7B-v0.1
24
- RUN touch .cache/huggingface/hub/.locks/models--mistralai--Mixtral-8x7B-v0.1/43e6daf936dc0f953cb867ec864adab78f92d9ce.lock
25
- RUN chmod 777 .cache/huggingface/hub/.locks/models--mistralai--Mixtral-8x7B-v0.1/43e6daf936dc0f953cb867ec864adab78f92d9ce.lock
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"]