fix(docker): pull node and nginx from ECR Public mirror
Avoids Docker Hub rate limits and auth issues in CI by using public.ecr.aws/docker/library instead of docker.io. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
# Build stage
|
# Build stage
|
||||||
FROM node:22-alpine AS build
|
FROM public.ecr.aws/docker/library/node:22-alpine AS build
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Install dependencies — copy lockfiles first to cache the npm layer
|
# Install dependencies — copy lockfiles first to cache the npm layer
|
||||||
@@ -18,7 +18,7 @@ COPY src/frontend/public/ ./public/
|
|||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# Serve stage
|
# Serve stage
|
||||||
FROM nginx:alpine AS runtime
|
FROM public.ecr.aws/docker/library/nginx:alpine AS runtime
|
||||||
COPY --from=build /app/dist /usr/share/nginx/html
|
COPY --from=build /app/dist /usr/share/nginx/html
|
||||||
COPY cicd/docker/nginx.conf /etc/nginx/conf.d/default.conf
|
COPY cicd/docker/nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user