CoolFace
Apppublic

PrajwalMl/CAT_vs_DOG_Image_Classification_Project

sourceHugging Facemitupdated 3mo agoView on Hugging Face
1likes
Dockerfile30 linesDownload Raw Back to root
1FROM python:3.11-slim2 3ENV PYTHONDONTWRITEBYTECODE=1 \4    PYTHONUNBUFFERED=15 6WORKDIR /app7 8RUN apt-get update && apt-get install -y --no-install-recommends \9    build-essential \10    curl \11    git \12    && rm -rf /var/lib/apt/lists/*13 14COPY requirements.txt .15 16RUN pip install --upgrade pip && \17    pip install --no-cache-dir -r requirements.txt18 19COPY cat_dog_model.tflite ./20 21COPY src/ ./src/22 23EXPOSE 786024 25HEALTHCHECK --interval=30s --timeout=5s --start-period=30s --retries=3 \26    CMD curl --fail http://localhost:7860/_stcore/health || exit 127 28ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", \29            "--server.port=7860", \30            "--server.address=0.0.0.0"]