staraks commited on
Commit
ec3e1d8
·
verified ·
1 Parent(s): e3dcd52

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +28 -0
Dockerfile ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Dockerfile for Hugging Face Space with ffmpeg + Whisper
2
+ FROM python:3.10-slim
3
+
4
+ # Prevents python writing .pyc files and buffers
5
+ ENV PYTHONDONTWRITEBYTECODE=1
6
+ ENV PYTHONUNBUFFERED=1
7
+
8
+ # Install ffmpeg and system build tools (kept minimal)
9
+ RUN apt-get update && \
10
+ apt-get install -y --no-install-recommends \
11
+ ffmpeg \
12
+ build-essential \
13
+ git \
14
+ && rm -rf /var/lib/apt/lists/*
15
+
16
+ # Copy requirements and install
17
+ COPY requirements.txt /tmp/requirements.txt
18
+ RUN pip install --no-cache-dir -r /tmp/requirements.txt
19
+
20
+ # Copy app code
21
+ COPY . /app
22
+ WORKDIR /app
23
+
24
+ # Expose port expected by HF Spaces
25
+ ENV PORT=7860
26
+
27
+ # Launch the app (Gradio will bind to $PORT)
28
+ CMD ["python", "app.py"]