CoolFace
Apppublic

giodesi/Multi-class_Classification

sourceHugging Facemitupdated 10mo agoView on Hugging Face
0likes
Dockerfile37 linesDownload Raw Back to root
1FROM python:3.13.5-slim2 3WORKDIR /app4 5# Install system dependencies6RUN apt-get update && apt-get install -y \7    build-essential \8    curl \9    git \10    && rm -rf /var/lib/apt/lists/*11 12# Set environment variables for proper permissions13ENV MPLCONFIGDIR=/tmp/matplotlib14ENV STREAMLIT_BROWSER_GATHER_USAGE_STATS=false15ENV HOME=/tmp16ENV PYTHONUNBUFFERED=117 18# Copy configuration files first19COPY .streamlit /app/.streamlit20 21# Copy application files22COPY requirements.txt ./23COPY app.py ./24COPY README.md ./25COPY LICENSE ./26 27# Install Python dependencies28RUN pip3 install -r requirements.txt29 30# Create necessary directories with proper permissions31RUN mkdir -p /tmp/matplotlib && chmod 777 /tmp/matplotlib32 33EXPOSE 850134 35HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health36 37ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]