austinbv
commited on
Commit
·
7f0439e
1
Parent(s):
48dd198
Get ready to deploy
Browse files- Dockerfile +4 -0
- frontend/src/App.tsx +1 -1
Dockerfile
CHANGED
|
@@ -1,5 +1,7 @@
|
|
| 1 |
FROM python:3.11-slim
|
| 2 |
|
|
|
|
|
|
|
| 3 |
RUN pip install poetry==1.6.1
|
| 4 |
|
| 5 |
RUN poetry config virtualenvs.create false
|
|
@@ -10,6 +12,8 @@ COPY ./pyproject.toml ./README.md ./poetry.lock* ./
|
|
| 10 |
|
| 11 |
COPY ./package[s] ./packages
|
| 12 |
|
|
|
|
|
|
|
| 13 |
RUN poetry install --no-interaction --no-ansi --no-root
|
| 14 |
|
| 15 |
COPY ./app ./app
|
|
|
|
| 1 |
FROM python:3.11-slim
|
| 2 |
|
| 3 |
+
RUN apt update && apt install -y libpq-dev
|
| 4 |
+
|
| 5 |
RUN pip install poetry==1.6.1
|
| 6 |
|
| 7 |
RUN poetry config virtualenvs.create false
|
|
|
|
| 12 |
|
| 13 |
COPY ./package[s] ./packages
|
| 14 |
|
| 15 |
+
COPY ./source_docs ./source_docs
|
| 16 |
+
|
| 17 |
RUN poetry install --no-interaction --no-ansi --no-root
|
| 18 |
|
| 19 |
COPY ./app ./app
|
frontend/src/App.tsx
CHANGED
|
@@ -45,7 +45,7 @@ function App() {
|
|
| 45 |
|
| 46 |
setMessages(prevMessages => [...prevMessages, {message, isUser: true}]);
|
| 47 |
|
| 48 |
-
await fetchEventSource(`${
|
| 49 |
method: 'POST',
|
| 50 |
headers: {
|
| 51 |
'Content-Type': 'application/json',
|
|
|
|
| 45 |
|
| 46 |
setMessages(prevMessages => [...prevMessages, {message, isUser: true}]);
|
| 47 |
|
| 48 |
+
await fetchEventSource(`${process.env.REACT_APP_BACKEND_URL}/rag/stream`, {
|
| 49 |
method: 'POST',
|
| 50 |
headers: {
|
| 51 |
'Content-Type': 'application/json',
|