File size: 350 Bytes
c2e6cab
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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"]