Skip to content

Commit

Permalink
Switch back to node 16 due to fetch api changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmoy12c committed Jul 15, 2024
1 parent 65f1a4f commit b852f3e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 ./
Expand Down

0 comments on commit b852f3e

Please sign in to comment.