File size: 601 Bytes
6a8daed
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# Use the base image
FROM python:3.12

# Set environment variables to avoid Python writing .pyc files and buffering logs
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1

# Set working directory
WORKDIR /app

# Copy requirements file into container
COPY test_req.txt .

# RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*

RUN pip install --upgrade pip

# Install Gradio with MCP support
RUN pip install -r test_req.txt

# Copy application code into container
COPY app.py .

# Expose Gradio’s default port
EXPOSE 7860

# Command to run the app
CMD ["python", "app.py"]