Pin FROM directives to docker.io explicitly so the build avoids any internal mirror that isn't resolvable

This commit is contained in:
oonyeje 2026-07-08 00:47:39 +00:00
parent 5a43802a8e
commit a11180ca42

View File

@ -1,5 +1,6 @@
# ---- Build stage ----------------------------------------------------------
FROM node:20-alpine AS builder
# Pin the registry explicitly to avoid internal mirror DNS issues during build.
FROM docker.io/library/node:20-alpine AS builder
WORKDIR /app
@ -10,7 +11,7 @@ COPY src/ ./src/
RUN npm run build
# ---- Runtime stage --------------------------------------------------------
FROM node:20-alpine
FROM docker.io/library/node:20-alpine
WORKDIR /app
@ -28,4 +29,4 @@ USER app
EXPOSE 3012
CMD ["node", "server.js"]
CMD ["node", "server.js"]\n