CoolFace
Apppublic

MLBench/Coin_Detection

sourceHugging Faceupdated 8mo agoView on Hugging Face
0likes
Dockerfile34 linesDownload Raw Back to root
1# HF Spaces compatible base image2FROM python:3.9-slim3 4# Prevent Python from writing .pyc files5ENV PYTHONDONTWRITEBYTECODE=16ENV PYTHONUNBUFFERED=17 8# Set working directory9WORKDIR /app10 11# System dependencies (safe defaults)12RUN apt-get update && apt-get install -y \13    libgl1 \14    libglib2.0-0 \15    git \16    curl \17    && rm -rf /var/lib/apt/lists/*18 19# Copy requirements first (better Docker caching)20COPY requirements.txt .21 22# Upgrade pip and install dependencies23RUN pip install --upgrade pip \24    && pip install --no-cache-dir -r requirements.txt25 26# Copy the rest of the application27COPY . .28 29# Hugging Face Spaces uses port 786030EXPOSE 786031 32# Start the app33CMD ["python", "app.py"]34