Skip to content

Commit 4cc9820

Browse files
authored
Update custom docker image docs (#1557)
1 parent f6720fc commit 4cc9820

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

docs/deployments/system-packages.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,19 @@ RUN pip install --no-cache-dir pandas \
7575
&& conda clean -a
7676
```
7777

78-
### Build and push to a container registry
78+
### Build your image
7979

80-
Create a repository to store your image:
80+
```bash
81+
docker build . -t org/my-api:latest
82+
```
83+
84+
### Push your image to a container registry
85+
86+
_If you are only running Cortex locally, you can skip this section_
87+
88+
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).
89+
90+
For example, to use ECR, first create a repository to store your image:
8191

8292
```bash
8393
# We create a repository in ECR
@@ -93,7 +103,7 @@ aws ecr create-repository --repository-name=org/my-api --region=$AWS_REGION
93103
# take note of repository url
94104
```
95105

96-
Build the image based on your Dockerfile and push it to its repository in ECR:
106+
Build and tag your image, and push it to your ECR repository:
97107

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

0 commit comments

Comments
 (0)