Skip to content

Commit 46719e7

Browse files
committed
Update custom docker image docs (#1557)
(cherry picked from commit 4cc9820)
1 parent c3dab40 commit 46719e7

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

Diff for: docs/deployments/system-packages.md

+13-3
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,19 @@ RUN pip install --no-cache-dir pandas \
7373
&& conda clean -a
7474
```
7575

76-
### Build and push to a container registry
76+
### Build your image
7777

78-
Create a repository to store your image:
78+
```bash
79+
docker build . -t org/my-api:latest
80+
```
81+
82+
### Push your image to a container registry
83+
84+
_If you are only running Cortex locally, you can skip this section_
85+
86+
You can push your built Docker image to a public registry of your choice (e.g. Docker Hub), or to a private registry on ECR or Docker Hub (for private Docker Hub, also follow [this guide](../guides/private-docker.md) to configure access in your cluster).
87+
88+
For example, to use ECR, first create a repository to store your image:
7989

8090
```bash
8191
# We create a repository in ECR
@@ -91,7 +101,7 @@ aws ecr create-repository --repository-name=org/my-api --region=$AWS_REGION
91101
# take note of repository url
92102
```
93103

94-
Build the image based on your Dockerfile and push it to its repository in ECR:
104+
Build and tag your image, and push it to your ECR repository:
95105

96106
```bash
97107
docker build . -t org/my-api:latest -t <repository_url>:latest

0 commit comments

Comments
 (0)