FROM python:3.10-slim WORKDIR /app COPY . /app RUN mkdir -p /app/.cache && chmod -R 777 /app/.cache RUN pip install --no-cache-dir -r requirements.txt EXPOSE 7860 CMD ["python", "app.py"]