You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/custom_docker_images.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,10 +15,10 @@ subsequent versions of this document will have native examples for non-Python bi
15
15
For choice of web server, we recommend [FastAPI](https://fastapi.tiangolo.com/lo/) due to its speed and ergonomics.
16
16
Any web server would work, although we give examples with FastAPI.
17
17
18
-
## Step 1: Install FastAPI
18
+
## Step 1: Install Requirements
19
19
20
-
You can add `fastapi` to the `requirements.txt` file that gets installed as part of your Dockerfile. Alternatively,
21
-
you can add `pip install fastapi` to the Dockerfile directly.
20
+
You can add `fastapi` and `uvicorn`to the `requirements.txt` file that gets installed as part of your Dockerfile. Alternatively,
21
+
you can add `pip install fastapi uvicorn` to the Dockerfile directly.
22
22
23
23
## Step 2: Set up a web server application
24
24
@@ -62,7 +62,7 @@ using AWS ECR, please make sure that the necessary cross-account permissions all
62
62
63
63
## Step 4: Deploy!
64
64
65
-
Now you can upload your docker image as a Model Bundle, and then create a Model Endpoint referencing that Model Bundle.
65
+
Now you can upload your docker image as a Model Bundle, and then create a Model Endpoint referencing that Model Bundle. Note that `path.to.your.server.file:app` in the `command` section below should be relative to the `WORKDIR` of your docker image.
0 commit comments