File size: 584 Bytes
f40e934
 
 
e1b1f98
0c83b07
 
49b1475
f40e934
0c83b07
f40e934
0c83b07
f40e934
0c83b07
49b1475
f40e934
 
 
 
 
0c83b07
ed35a92
0c83b07
 
e1b1f98
f40e934
 
 
 
cfa368c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Use official PyTorch image with CUDA support if GPU, or CPU-only
ARG BASE_IMAGE=python:3.10-slim
FROM ${BASE_IMAGE}

# Set working directory
WORKDIR /app

# Install system dependencies
RUN apt-get update && apt-get install -y \
    git \
    ffmpeg \
    libsndfile1 \
    && rm -rf /var/lib/apt/lists/*

# Copy requirements
COPY requirements.txt .

# Install Python dependencies
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt

# Copy app code
COPY . .

# Expose port for Gradio
EXPOSE 7860

# Start the app
CMD ["python", "app.py"]