fix(docker): prefix compose image names with localhost to prevent Docker Hub lookups

randall/frontend and randall/backend were being resolved as docker.io
paths, causing unwanted registry auth attempts. The localhost/ prefix
marks them as local-only images. Also restores docker/setup-buildx-action
with the docker driver, and reverts the ECR Public mirror workaround
since it was never the root cause.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Robert van Diest
2026-03-27 17:02:40 +01:00
parent a7ad3d6ebf
commit 72751f6491
3 changed files with 9 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
# Build stage
FROM public.ecr.aws/docker/library/node:22-alpine AS build
FROM node:22-alpine AS build
WORKDIR /app
# Install dependencies — copy lockfiles first to cache the npm layer
@@ -18,7 +18,7 @@ COPY src/frontend/public/ ./public/
RUN npm run build
# Serve stage
FROM public.ecr.aws/docker/library/nginx:alpine AS runtime
FROM nginx:alpine AS runtime
COPY --from=build /app/dist /usr/share/nginx/html
COPY cicd/docker/nginx.conf /etc/nginx/conf.d/default.conf