diff --git a/Dockerfile b/Dockerfile index 94d88f8..230bfe9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,13 @@ # Install dependencies only when needed -FROM node:18-alpine AS deps +FROM node:18-alpine3.19 AS deps +RUN yarn config set network-timeout 300000 RUN apk add --no-cache libc6-compat WORKDIR /app COPY package.json yarn.lock ./ RUN yarn install # Rebuild the source code only when needed -FROM node:18-alpine AS builder +FROM node:18-alpine3.19 AS builder WORKDIR /app @@ -17,7 +18,7 @@ COPY . . RUN yarn build # Production image, copy all the files and run next -FROM node:18-alpine AS runner +FROM node:18-alpine3.19 AS runner WORKDIR /app ENV NODE_ENV production