Skip to content

Commit

Permalink
Fix docker deployment (#162)
Browse files Browse the repository at this point in the history
* inital aca work

* container config updates

* Fixing container startup issues (#129)

* Fixing container startup issues

* Fixing import

---------

Co-authored-by: Andre Dewes <[email protected]>

* update arch diagram

* fix get response

* path fixes

* fix chat request

* fix env vars

* fix path for ai search

* update to fastapi, prompty updates, start eval work,

* some deployment fixes

* fix api deployment, fix endpoint name

* update eval py to load model config

* evalution notebook

* move evals

* update infra to ai studio

* update model version to deploy to east us2

* update evaluate

* remove unsued deployment files

* update text

* fix models for infra

* fix aca name

* fix docker deployment

* Update docker-compose.yml

* Update Dockerfile

---------

Co-authored-by: Andre Dewes <[email protected]>
Co-authored-by: Andre Dewes <[email protected]>
  • Loading branch information
3 people authored Sep 10, 2024
1 parent 49e52c7 commit af18890
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 66,870 deletions.
7 changes: 0 additions & 7 deletions contoso_chat/requirements.txt

This file was deleted.

20 changes: 10 additions & 10 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
services:
api:
build:
context: src/api
ports:
- "5000:5000"
env_file:
- .env
environment:
- PYTHONUNBUFFERED=1
services:
api:
build:
context: src/api
ports:
- "5000:80"
env_file:
- .env
environment:
- PYTHONUNBUFFERED=1
4 changes: 3 additions & 1 deletion src/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
#copy product folder
COPY ./contoso_chat/product /app/product
COPY . .

EXPOSE 80

CMD ["fastapi", "run", "main.py", "--port", "80"]
CMD ["fastapi", "run", "main.py", "--port", "80"]
Empty file.
Loading

0 comments on commit af18890

Please sign in to comment.