-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made changes to chat app to enable docker deployment
- Loading branch information
1 parent
41ea386
commit f355eec
Showing
13 changed files
with
484 additions
and
469 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#OPENAI API KEY | ||
OPENAI_API_KEY = | ||
|
||
# Weaviate cloud deployment | ||
WEAVIATE_URL = | ||
WEAVIATE_API_KEY = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
FROM python:3.11-slim | ||
WORKDIR /App | ||
COPY . /App | ||
RUN python -m pip install -r requirements.txt | ||
EXPOSE 8000 | ||
CMD [" ", "start","--port","8002","--host","0.0.0.0"] | ||
FROM python:3.11 | ||
WORKDIR /app | ||
COPY . /app | ||
RUN pip install --upgrade pip | ||
RUN pip install -r requirements.txt | ||
EXPOSE 8001 | ||
CMD ["uvicorn", "main:app","--host","0.0.0.0","--port","8001"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
services: | ||
chat_backend: | ||
build: | ||
context: ./ | ||
dockerfile: Dockerfile | ||
ports: | ||
- 8001:8001 | ||
environment: | ||
- WEAVIATE_ENDPOINT_URL=$WEAVIATE_ENDPOINT_URL | ||
- WEAVIATE_API_KEY=$WEAVIATE_API_KEY | ||
- OPENAI_API_KEY=$OPENAI_API_KEY |
Oops, something went wrong.