FROM python:3.10-slim WORKDIR /app COPY . . RUN pip install --upgrade pip RUN pip install --no-cache-dir -r requirements.txt EXPOSE 7860 CMD ["sh", "-c", "python app.py & python inference.py"]