Nanboy commited on
Commit
8224841
·
verified ·
1 Parent(s): 09689f6

fix: switch to Docker SDK with Python 3.11 to resolve audioop/pydub issue

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /app
4
+
5
+ RUN apt-get update && apt-get install -y \
6
+ ffmpeg \
7
+ libsndfile1 \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ COPY requirements.txt .
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ COPY . .
14
+
15
+ EXPOSE 7860
16
+
17
+ ENV GRADIO_SERVER_NAME="0.0.0.0"
18
+ ENV GRADIO_SERVER_PORT=7860
19
+
20
+ CMD ["python", "app.py"]