FROM python:3.10 WORKDIR /app ENV VIRTUAL_ENV=/opt/venv RUN python3 -m venv $VIRTUAL_ENV ENV PATH="$VIRTUAL_ENV/bin:$PATH" ENV GRADIO_SERVER_PORT=7860 ENV ANNOY_COMPILER_ARGS=-DNO_MANUAL_VECTORIZATION RUN mkdir -p ./logs ./sources ./vectors ./PDF COPY . . RUN pip install --upgrade pip RUN pip install -r requirements.txt CMD ["python", "app.py"]