mahmoudalyosify's picture
Update Dockerfile
66cdd70 verified
# 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"]