From b852f3ea049c38079602658ee2e389fbdf7c96c0 Mon Sep 17 00:00:00 2001 From: Chinmoy Chakraborty Date: Mon, 15 Jul 2024 17:52:20 +0530 Subject: [PATCH] Switch back to node 16 due to fetch api changes. --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index b2e27f4..095f05e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,10 @@ -FROM node:18 AS install +FROM node:16 AS install WORKDIR /app COPY package.json ./ +RUN yarn config set ignore-engines true RUN yarn install -FROM node:18 as build +FROM node:16 as build WORKDIR /app COPY prisma ./prisma/ RUN npx prisma generate @@ -13,7 +14,7 @@ COPY --from=install /app/node_modules ./node_modules COPY . . RUN npm run build -FROM node:18 +FROM node:16 WORKDIR /app COPY --from=build /app/dist ./dist COPY --from=build /app/package*.json ./