File size: 560 Bytes
4cc6d78
 
9446526
4cc6d78
 
9446526
 
 
4cc6d78
 
9446526
 
 
 
4cc6d78
 
 
9446526
4cc6d78
 
9446526
4cc6d78
 
9446526
4cc6d78
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
# Dockerfile

# Base image: lightweight Python 3.9
FROM python:3.9-slim

# Install system packages if needed (none strictly required here)
RUN apt-get update && apt-get install -y --no-install-recommends \
        gcc \
    && rm -rf /var/lib/apt/lists/*

# Set work directory
WORKDIR /app

# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy our application code
COPY app.py .

# Expose port 7860 (Gradio + Flask)
EXPOSE 7860

# Launch the combined Flask + Gradio server
CMD ["python", "app.py"]