# Use the official Python image FROM python:3.8-slim # Set the working directory WORKDIR /app # Copy requirements.txt into the container COPY requirements.txt ./ # Install the required packages RUN pip install --no-cache-dir -r requirements.txt # Copy the rest of the application code into the container COPY . . # Expose the port that Streamlit will run on EXPOSE 7860 # Command to run the application CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]