Initial Commit

This commit is contained in:
Yuhong Sun
2023-04-28 22:40:46 -07:00
parent 751a8ea69e
commit 402b89b6ec
88 changed files with 7447 additions and 0 deletions

14
backend/Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
FROM python:3.11-slim-bullseye
RUN apt-get update \
&& apt-get install -y git cmake pkg-config libprotobuf-c-dev protobuf-compiler libprotobuf-dev libgoogle-perftools-dev build-essential \
&& rm -rf /var/lib/apt/lists/*
COPY ./requirements/default.txt /tmp/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /tmp/requirements.txt
WORKDIR /app
COPY ./qa_service /app/qa_service
ENV PYTHONPATH .
CMD ["uvicorn", "danswer.main:app", "--host", "0.0.0.0", "--port", "8080"]