Skip to content

Commit c7f2899

Browse files
JamBalaya56562claudebnusunny
authored
fix(examples): pull gin base images from ECR Public mirror (#752)
The gin example was the only one still pulling its base images (golang:1.18-alpine, alpine:3.9) directly from Docker Hub, which caused the test-image (gin) CI job to fail with registry-1.docker.io connection timeouts (Docker Hub anonymous pull rate limits). Switch both stages to the public.ecr.aws/docker/library mirror to match every other example, and bump to golang:1.23-alpine / alpine:3.20. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> Co-authored-by: Harold Sun <sunhua@amazon.com>
1 parent 9a59d04 commit c7f2899

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/gin/app/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
FROM golang:1.18-alpine AS build_base
1+
FROM public.ecr.aws/docker/library/golang:1.23-alpine AS build_base
22
RUN apk add --no-cache git
33
WORKDIR /tmp/gin
44

55
COPY . .
66
RUN go mod download
77

88
RUN GOOS=linux CGO_ENABLED=0 go build -o bootstrap .
9-
FROM alpine:3.9
9+
FROM public.ecr.aws/docker/library/alpine:3.20
1010
RUN apk add ca-certificates
1111
COPY --from=public.ecr.aws/awsguru/aws-lambda-adapter:1.0.1 /lambda-adapter /opt/extensions/lambda-adapter
1212
COPY --from=build_base /tmp/gin/bootstrap /app/bootstrap

0 commit comments

Comments
 (0)