mrjohn1134/Tips_Model_Predictor1
0
1# Use a lightweight Python image2FROM python:3.9-slim3 4# Set the working directory inside the container5WORKDIR /app6 7# Install system packages8RUN apt-get update && apt-get install -y \9 build-essential \10 curl \11 git \12 && rm -rf /var/lib/apt/lists/*13 14# Copy requirements and app code into the container15COPY requirements.txt ./16COPY Tips_model.py ./17 18# Install Python dependencies19RUN pip install --no-cache-dir -r requirements.txt20 21# Expose Streamlit port22EXPOSE 850123 24# Optional: health check for container health25HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 126 27# Start the Streamlit app28ENTRYPOINT ["streamlit", "run", "Tips_model.py", "--server.port=8501", "--server.address=0.0.0.0"]29 