File size: 568 Bytes
1bab85c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Use a minimal Python 3.9 base image
FROM python:3.9-slim

# Set the working directory inside the container
WORKDIR /app

# Copy all files from the current directory to the container
COPY . .

# Install Python dependencies
RUN pip3 install -r requirements.txt

# Expose port 7860 -- REQUIRED by Hugging Face Spaces
# (HF Spaces routes all external traffic to port 7860)
EXPOSE 7860

# Start the Streamlit app on port 7860
CMD ["streamlit", "run", "app.py", \
     "--server.port=7860", \
     "--server.address=0.0.0.0", \
     "--server.enableXsrfProtection=false"]