File size: 743 Bytes
84da56f
 
 
 
 
 
 
 
 
d5555e5
 
84da56f
 
 
 
 
 
 
 
 
 
 
424d34c
 
 
d5555e5
84da56f
 
 
 
 
 
 
 
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
31
32
33
34
# Use an official Python runtime as the base image
FROM python:3.10-slim

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

# Set the working directory
WORKDIR /app

# Copy the requirements file into the container
COPY requirements.txt .

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

# Create a writable directory for numba cache
RUN mkdir -p /tmp/numba_cache
ENV NUMBA_CACHE_DIR=/tmp/numba_cache

# Copy the application code into the container
COPY app.py .

# Expose the port Gradio will run on
EXPOSE 7860

# Run the application
CMD ["python", "app.py"]