FROM python:3.10-slim WORKDIR /code # Install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy necessary files COPY app.py . COPY dvd_evaluator.py . COPY note_criteria.json . COPY templates/ templates/ COPY __init__.py . # Set proper permissions RUN chmod 644 dvd_evaluator.py RUN chmod 644 note_criteria.json # Set environment variables ENV PORT=7860 EXPOSE 7860 CMD ["python", "app.py"]