diff --git a/Dockerfile b/Dockerfile index c51321e..e13e930 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file +CMD ["node", "server.js"]\n \ No newline at end of file