File size: 330 Bytes
dc90148
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM python:3.10

# Install dependencies
COPY requirements.txt /tmp/requirements.txt
RUN pip install --no-cache-dir -r /tmp/requirements.txt

# Force correct Gradio version
RUN pip install --no-cache-dir --upgrade gradio==4.44.1

# Copy app code
COPY . /app
WORKDIR /app

# Expose Space port
ENV PORT=7860
CMD ["python", "app.py"]