FROM python:3.11-slim WORKDIR /app # Install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Cache bust: increment to force rebuild of layers below ARG CACHE_BUST=17 RUN echo "Build version: $CACHE_BUST" # Copy application code from src directory COPY src/ ./src/ # Copy static files (dashboard HTML) COPY static/ ./static/ # Copy startup script COPY start-app.sh . # Make startup script executable RUN chmod +x start-app.sh # Expose HF Spaces default port EXPOSE 7860 # Run startup script with main.py from src CMD ["./start-app.sh"]