HighnessAnnotation commited on
Commit
abe695c
·
verified ·
1 Parent(s): 5ea5ff4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -7
Dockerfile CHANGED
@@ -1,12 +1,16 @@
1
- FROM python:3.10
 
 
2
 
3
  WORKDIR /app
4
- COPY . /app
5
 
6
- RUN pip install --no-cache-dir \
7
- gradio==4.29.0 \
8
- huggingface_hub==0.19.4 \
9
- httpx==0.24.1 \
10
- pydantic==1.10.13
 
 
 
11
 
12
  CMD ["python", "app.py"]
 
1
+ FROM python:3.10-slim
2
+
3
+ RUN apt-get update && apt-get install -y ffmpeg && apt-get clean && rm -rf /var/lib/apt/lists/*
4
 
5
  WORKDIR /app
 
6
 
7
+ COPY requirements.txt .
8
+
9
+ RUN pip install --no-cache-dir --upgrade pip && \
10
+ pip install --no-cache-dir httpx gradio==3.50.2 pydantic
11
+
12
+ COPY . .
13
+
14
+ EXPOSE 7860
15
 
16
  CMD ["python", "app.py"]