From dc90d2ac4d0be001fd307aa49c9e660c579097ab Mon Sep 17 00:00:00 2001 From: Dex Date: Fri, 29 Mar 2024 15:42:41 -0400 Subject: [PATCH] Dockerfile update --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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