# Use the official Python image as a base FROM python:3.9-slim # Set the working directory in the container WORKDIR /app # Copy the requirements file into the container COPY requirements.txt /app # Copy .streamlit folder COPY .streamlit /app/.streamlit # Copy Data folder COPY Data /app/Data # Install the dependencies RUN pip install -r requirements.txt # Copy the rest of your application code into the container COPY . /app # Expose the port Streamlit runs on EXPOSE 8501 # Run the Streamlit app CMD ["streamlit", "run", "app.py"]