FROM python:3.9-slim WORKDIR /app COPY . . # Create required directories with proper permissions RUN mkdir -p static/uploads && chmod -R 777 static RUN pip install --no-cache-dir -r requirements.txt CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]