File size: 451 Bytes
bb7c0a4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Use a slim Python 3.10 image
FROM python:3.10-slim

# Set working directory inside the container
WORKDIR /usr/src/app

# Copy source files into container
COPY . .

# Install required Python packages
RUN pip install --no-cache-dir gradio transformers torch

# Expose the port Gradio runs on
EXPOSE 7860

# Environment variable for Gradio to listen on all interfaces
ENV GRADIO_SERVER_NAME="0.0.0.0"

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