File size: 432 Bytes
e7afcc5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM python:3.10-slim

WORKDIR /code

ENV PYTHONUNBUFFERED=1 \
    PYTHONDONTWRITEBYTECODE=1 \
    PIP_NO_CACHE_DIR=off \
    PIP_DISABLE_PIP_VERSION_CHECK=on \
    PIP_DEFAULT_TIMEOUT=100 \
    HNSWLIB_NO_NATIVE=1

RUN apt-get update && apt install python3-dev libprotobuf-dev build-essential -y

COPY . .
RUN pip install --upgrade pip
RUN pip install duckdb
RUN pip install -r requirements.txt
EXPOSE 8071
CMD ["gradio", "app.py"]