diff --git a/backend.Dockerfile b/backend.Dockerfile index a326d3e..a83a988 100644 --- a/backend.Dockerfile +++ b/backend.Dockerfile @@ -1,9 +1,11 @@ -FROM golang:1.17-alpine AS backend +# FROM golang:1.17-alpine AS backend +# AWS CodeBuild fails due to Docker's pull rate limit. +FROM public.ecr.aws/bitnami/golang:1.17 AS backend WORKDIR /go/src/app -COPY go.* . +COPY go.* ./ COPY internal ./internal RUN go mod download -COPY cmd/backend . +COPY cmd/backend ./ RUN CGO_ENABLED=0 GOOS=linux go build -ldflags '-s' -o backend . FROM scratch diff --git a/cache.Dockerfile b/cache.Dockerfile index b92ea28..d63ea9e 100644 --- a/cache.Dockerfile +++ b/cache.Dockerfile @@ -1,4 +1,5 @@ # FROM golang:1.17-alpine AS cache +# AWS CodeBuild fails due to Docker's pull rate limit. FROM public.ecr.aws/bitnami/golang:1.17 AS cache WORKDIR /go/src/app COPY go.* ./ diff --git a/database.Dockerfile b/database.Dockerfile index 73b4c1e..2faa5d1 100644 --- a/database.Dockerfile +++ b/database.Dockerfile @@ -1,4 +1,5 @@ # FROM golang:1.17-alpine AS database +# AWS CodeBuild fails due to Docker's pull rate limit. FROM public.ecr.aws/bitnami/golang:1.17 AS database WORKDIR /go/src/app COPY go.* ./ diff --git a/server.Dockerfile b/server.Dockerfile index 81681e4..2cb20e0 100644 --- a/server.Dockerfile +++ b/server.Dockerfile @@ -1,4 +1,5 @@ # FROM node:14-alpine AS react +# AWS CodeBuild fails due to Docker's pull rate limit. FROM public.ecr.aws/bitnami/node:16 AS react WORKDIR /usr/src/app COPY web/react/package*.json ./