Skip to content

Commit 7f1b5a5

Browse files
committed
fix: switch crane pull to AWS ECR Public to avoid Docker Hub rate limits
Docker Hub rate-limits unauthenticated pulls (100/IP/6hr). Modal's shared build IPs exhaust this quickly. AWS ECR Public (public.ecr.aws/docker/library) is the official Docker image mirror with NO anonymous rate limits.
1 parent 76b8890 commit 7f1b5a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def _get_gpu_config(gpu_key: str):
225225
.run_commands(
226226
"curl -sL https://github.com/google/go-containerregistry/releases/download/v0.21.5/go-containerregistry_Linux_x86_64.tar.gz | tar -xzf - -C /usr/local/bin crane", # noqa: E501
227227
"mkdir -p /images",
228-
"crane pull node:22-alpine /images/node-22-alpine.tar",
228+
"crane pull public.ecr.aws/docker/library/node:22-alpine /images/node-22-alpine.tar",
229229
)
230230
# Layer 2: Python deps (semi-stable)
231231
.apt_install("python3", "python3-pip", "python-is-python3")

0 commit comments

Comments
 (0)