-
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.
Updated docker for backend--not working
- Loading branch information
1 parent
60af79e
commit 6afdf84
Showing
9 changed files
with
496 additions
and
436 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,6 @@ | |
|
||
##### Setup - Docker | ||
|
||
TODO | ||
|
||
|
||
|
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 | ||
FROM python:3.11 | ||
WORKDIR /app | ||
COPY . /app | ||
RUN pip install --upgrade pip | ||
RUN pip install -r requirements.txt | ||
EXPOSE 8000 | ||
CMD [" ", "start","--port","8002","--host","0.0.0.0"] | ||
CMD ["uvicorn", "main:app","--port","8000","--host","localhost"] |
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,12 @@ | ||
services: | ||
chat_backend: | ||
build: | ||
context: ./ | ||
dockerfile: Dockerfile | ||
ports: | ||
- 8000:8000 | ||
environment: | ||
- WEAVIATE_ENDPOINT_URL=$WEAVIATE_ENDPOINT_URL | ||
- WEAVIATE_API_KEY=$WEAVIATE_API_KEY | ||
- OPENAI_API_KEY=$OPENAI_API_KEY | ||
|
Oops, something went wrong.