From 5a2f16614abbd9612ccd17e9b13570c831144e56 Mon Sep 17 00:00:00 2001 From: Robert Burgess Date: Thu, 15 Aug 2024 15:19:57 -0400 Subject: [PATCH] update build file --- Dockerfile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 42713ba..9935294 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Install dependencies only when needed -FROM node:20-alpine AS deps +FROM node:18-alpine3.19 AS deps RUN apk add --no-cache libc6-compat WORKDIR /app COPY package.json yarn.lock ./ @@ -7,7 +7,7 @@ RUN yarn config set network-timeout 100000 RUN yarn install # Rebuild the source code only when needed -FROM node:20-alpine AS builder +FROM node:18-alpine3.19 AS builder WORKDIR /app @@ -18,7 +18,7 @@ COPY . . RUN yarn build # Production image, copy all the files and run next -FROM node:20-alpine AS runner +FROM node:18-alpine3.19 AS runner WORKDIR /app ENV NODE_ENV production @@ -40,9 +40,5 @@ EXPOSE 3000 ENV PORT 3000 ENV HOSTNAME "0.0.0.0" -ENV NEXT_PUBLIC_SENDGRID_API_KEY=$NEXT_PUBLIC_SENDGRID_API_KEY -ENV NEXT_PUBLIC_RECAPTCHA_SITE_KEY=$NEXT_PUBLIC_RECAPTCHA_SITE_KEY -ENV NEXT_PUBLIC_RECAPTCHA_SECRET_KEY=$NEXT_PUBLIC_RECAPTCHA_SECRET_KEY - CMD ["node", "server.js"]