update build file
parent
e3c29a7ece
commit
5a2f16614a
10
Dockerfile
10
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"]
|
||||
|
|
Loading…
Reference in New Issue