tao-shen commited on
Commit
0cf0599
·
verified ·
1 Parent(s): 8a84f8c

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -2,13 +2,17 @@ FROM python:3.12-slim
2
 
3
  WORKDIR /app
4
 
 
 
 
5
  COPY requirements.txt /app/requirements.txt
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
8
  COPY . /app
9
 
10
- # Set environment variable for Gradio
11
  ENV GRADIO_SERVER_NAME="0.0.0.0"
12
  ENV PYTHONUNBUFFERED=1
 
13
 
14
  CMD ["python", "scripts/entrypoint.sh"]
 
2
 
3
  WORKDIR /app
4
 
5
+ # Install system dependencies (ffmpeg for pydub)
6
+ RUN apt-get update && apt-get install -y ffmpeg && rm -rf /var/lib/apt/lists/*
7
+
8
  COPY requirements.txt /app/requirements.txt
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
11
  COPY . /app
12
 
13
+ # Set environment variables for Gradio
14
  ENV GRADIO_SERVER_NAME="0.0.0.0"
15
  ENV PYTHONUNBUFFERED=1
16
+ ENV PYTHON_VERSION=3.12
17
 
18
  CMD ["python", "scripts/entrypoint.sh"]