BG5 commited on
Commit
2f817fc
·
verified ·
1 Parent(s): cbe9c2a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -6
Dockerfile CHANGED
@@ -27,11 +27,13 @@ COPY ./requirements.txt /code/requirements.txt
27
  RUN python3 -m pip install --no-cache-dir --upgrade pip
28
  RUN python3 -m pip install --no-cache-dir --upgrade -r /code/requirements.txt
29
 
30
- COPY . .
31
 
32
- CMD ["panel", "serve", "/code/app.py", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "*"]
33
 
34
- RUN mkdir /.cache
35
- RUN chmod 777 /.cache
36
- RUN mkdir .chroma
37
- RUN chmod 777 .chroma
 
 
 
 
27
  RUN python3 -m pip install --no-cache-dir --upgrade pip
28
  RUN python3 -m pip install --no-cache-dir --upgrade -r /code/requirements.txt
29
 
 
30
 
31
+ WORKDIR /app
32
 
33
+ COPY --chown=user ./requirements.txt requirements.txt
34
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
35
+
36
+ COPY --chown=user . /app
37
+ EXPOSE 8000
38
+
39
+ CMD ["panel", "serve", "/code/app.py", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "*"]