treizh commited on
Commit
905bbba
·
verified ·
1 Parent(s): 3418734

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11
2
+
3
+ WORKDIR /code
4
+
5
+ COPY . /code/
6
+
7
+ RUN python3 -m pip install --no-cache-dir --upgrade pip
8
+ RUN python3 -m pip install --no-cache-dir --upgrade -r /code/requirements.txt
9
+ RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
10
+
11
+ CMD ["panel", "serve", "/code/app.py", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "*"]
12
+
13
+ RUN mkdir /.cache
14
+ RUN chmod 777 /.cache
15
+ RUN mkdir .chroma
16
+ RUN chmod 777 .chroma