# Use official TensorFlow image FROM tensorflow/tensorflow:latest # Set working directory WORKDIR /app # Install system dependencies RUN apt-get update && apt-get install -y \ python3-pip \ curl && \ rm -rf /var/lib/apt/lists/* # Copy all project files COPY . /app # Install Python dependencies RUN pip install --no-cache-dir \ numpy \ scikit-learn \ tensorflow \ keras \ pillow \ streamlit # Expose Streamlit default port EXPOSE 7860 # Run the Streamlit app CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]