FROM python:3.10 WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY . . # Ensure temp directory exists and set permissions RUN mkdir -p /app/temp && chmod 777 /app/temp CMD ["python", "app.py"]