FROM python:3.10-bullseye WORKDIR /app RUN mkdir -p \ /app/tmp \ /app/vector_dbs \ && chmod -R 775 /app #ENV TORCHINDUCTOR_CACHE_DIR=/app/tmp/torchinductor COPY . /app RUN pip install --no-cache-dir -r requirements.txt EXPOSE 5000 CMD ["gunicorn","app:app","-k","uvicorn.workers.UvicornWorker","-w","8","--preload","--timeout","300","--keep-alive","10","--bind","0.0.0.0:5000"]