From 5424361638b001d51ade8340171b14321ae12207 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. --- .github/workflows/CI-tests.yml | 4 ++-- Dockerfile | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/CI-tests.yml b/.github/workflows/CI-tests.yml index 8418d1a..acccbf9 100644 --- a/.github/workflows/CI-tests.yml +++ b/.github/workflows/CI-tests.yml @@ -15,7 +15,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v2 with: - node-version: 18 + node-version: 16 - name: Install Dependencies run: yarn install @@ -33,4 +33,4 @@ jobs: exit 1 else echo "Tests have passed." - fi \ No newline at end of file + fi 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 ./