File size: 441 Bytes
102c4d8
2e74176
a13d6d0
2e74176
 
0191d02
 
 
2e74176
 
0191d02
 
2e74176
 
0191d02
4232e48
0191d02
2e74176
a825611
 
0191d02
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM python:3.10-slim

# Set working directory
WORKDIR /app

# Copy application files
COPY . /app

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

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

EXPOSE 7860

# Use gunicorn to run the app
CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]