File size: 621 Bytes
a6c2f53
 
bb39038
a6c2f53
bb39038
 
a6c2f53
 
 
bb39038
a6c2f53
 
bb39038
a6c2f53
bb39038
 
66cdd70
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Use official Python runtime as a parent image
FROM python:3.9-slim

# Set the working directory in the container
WORKDIR /app

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

# Copy the ENTIRE repository (This includes 'src' and 'deployment' folders)
COPY . .

# Expose the port Streamlit uses
EXPOSE 8501

# Command to run the application (Fixed for HF Spaces File Uploads)
CMD ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableCORS=false", "--server.enableXsrfProtection=false"]