dvd_evaluator / Dockerfile
iyadsultan's picture
Enhance app.py with debugging features for MCQ generation and improve Dockerfile setup. Added debug prints for current working directory and files, along with a new debug wrapper for MCQ generation to capture errors. Updated Dockerfile to include __init__.py and set proper permissions for files, ensuring a smoother build process.
24a9aab
raw
history blame contribute delete
441 Bytes
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"]